New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 715780 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Last visit > 30 days ago
Closed: May 2017
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug

Blocking:
issue 711461



Sign in to add a comment

binutils-2.27: sys-boot/coreboot fails to build for elm (arm64)

Project Member Reported by rahulchaudhry@chromium.org, Apr 26 2017

Issue description

For elm(arm64), sys-boot/coreboot fails to build with binutils 2.27.

Snippet from the output of "build_packages --nousepkg --board=elm":

coreboot-0.0.1-r2060:   AS      bl31/aarch64/runtime_exceptions.S
coreboot-0.0.1-r2060: bl31/aarch64/runtime_exceptions.S: Assembler messages:
coreboot-0.0.1-r2060: bl31/aarch64/runtime_exceptions.S:180: Error: non-constant expression in ".if" statement
coreboot-0.0.1-r2060: bl31/aarch64/runtime_exceptions.S:188: Error: non-constant expression in ".if" statement
coreboot-0.0.1-r2060: bl31/aarch64/runtime_exceptions.S:193: Error: non-constant expression in ".if" statement
...
coreboot-0.0.1-r2060: bl31/aarch64/runtime_exceptions.S:272: Error: non-constant expression in ".if" statement
coreboot-0.0.1-r2060: bl31/aarch64/runtime_exceptions.S:276: Error: non-constant expression in ".if" statement
coreboot-0.0.1-r2060: bl31/aarch64/runtime_exceptions.S:284: Error: non-constant expression in ".if" statement
coreboot-0.0.1-r2060: make[1]: *** [Makefile:533: /build/elm/tmp/portage/sys-boot/coreboot-0.0.1-r2060/work/coreboot-0.0.1/build/3rdparty/arm-trusted-firmware/bl31/runtime_exceptions.o] Error 1
coreboot-0.0.1-r2060:  * ERROR: sys-boot/coreboot-0.0.1-r2060::chromiumos failed (compile phase):
coreboot-0.0.1-r2060:  *   emake failed

 
This issue is the same as the upstream bug https://sourceware.org/bugzilla/show_bug.cgi?id=20364: Data-based padding causes current address evaluation to be non-constant on aarch64.

The bug was introduced on 04-02-2015 in commit https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=c1baaddf8861aea666b84baeb4746caff51a579d: [AArch64] Emit DATA_MAP in order within text section.

It is fixed in upstream binutils master branch, but the fix is not in binutils-2_27-branch.

The fix was made on 08-05-2016 in commit https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=7ea12e5c3ad54da440c08f32da09534e63e515ca: Fix the generation of alignment frags in code sections for AArch64.

Backport for the fix to aosp binutils/binutils-2_27-branch: https://android-review.googlesource.com/#/c/398133

Status: Fixed (was: Assigned)

Comment 3 by dchan@chromium.org, Aug 1 2017

Labels: VerifyIn-61
Status: Verified (was: Fixed)
Closing. Please reopen it if its not fixed. Thanks!

Sign in to add a comment