Regression with Zesty binutils building u-boot

Bug #1648267 reported by Joel Stanley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
binutils (Ubuntu)
Invalid
Undecided
Unassigned
u-boot (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

With GNU ld (GNU Binutils for Ubuntu) 2.27.51.20161202 (arm-linux-gnueabi), building my u-boot target fails:

  LD u-boot
arm-linux-gnueabi-ld.bfd: u-boot: Not enough room for program headers, try linking with -N
arm-linux-gnueabi-ld.bfd: final link failed: Bad value
Makefile:1187: recipe for target 'u-boot' failed

If I instad use the GNU ld (2.27-9ubuntu1+9) 2.27 (arm-none-eabi), the same code links without issue.

Revision history for this message
Joel Stanley (shenki) wrote :

Prior to this commit linking works:

 https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=1a9ccd70f9a7

 "Fix the linker so that it will not silently generate ELF binaries with invalid program headers. Fix readelf to report such invalid binaries."

Revision history for this message
Matthias Klose (doko) wrote :

please could you attach the command line options used for the link, and all the object files and libraries needed for the link?

Changed in binutils (Ubuntu):
status: New → Incomplete
Revision history for this message
Joel Stanley (shenki) wrote :

you can reproduce with the following:

git clone git://git.denx.de/u-boot
cd u-boot
CROSS_COMPILE=arm-linux-gnueabi- make rock2_defconfig
CROSS_COMPILE=arm-linux-gnueabi- make

I spoke with Alan Modra, and the current theory is that it needs to be worked around in u-boot. I've submitted a patch there:

 http://lists.denx.de/pipermail/u-boot/2016-December/275664.html

Revision history for this message
Matthias Klose (doko) wrote :

ok, closing the issue for binutils, and opening one for u-boot.

Changed in binutils (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Juerg Haefliger (juergh) wrote :

Zesty is long gone.

Changed in u-boot (Ubuntu):
status: New → Won't Fix
Juerg Haefliger (juergh)
Changed in u-boot (Ubuntu):
status: Won't Fix → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.