Abort in elflink.c when building glibc trunk

Bug #1307539 reported by Will Newton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
binutils (Ubuntu)
Fix Released
Undecided
Unassigned
Saucy
Won't Fix
Undecided
Unassigned
Trusty
Fix Released
Undecided
Unassigned
Utopic
Fix Released
Undecided
Unassigned

Bug Description

Building glibc trunk from today (but also most likely older ones) results in an abort:

ld: BFD (GNU Binutils for Ubuntu) 2.23.52.20130913 internal error, aborting at ../../bfd/elflink.c line 8826 in elf_link_output_extsym

This looks like it was fixed by this commit:

commit c2763e270c6627e55ac7a75ed3c0a717fbca9bd0
Author: Roland McGrath <email address hidden>
Date: Tue Nov 19 10:54:00 2013 -0800

    Fix references to __ehdr_start when it cannot be defined

    ld/
        * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
        Don't use bfd_elf_record_link_assignment to mark __ehdr_start
        hidden. Instead, just do it directly here, and only if it was
        referenced but not defined.

    ld/testsuite/
        * ld-elf/ehdr_start-userdef.t: New file.
        * ld-elf/ehdr_start-userdef.d: New file.
        * ld-elf/ehdr_start-strongref.s: New file.
        * ld-elf/ehdr_start-missing.t: New file.
        * ld-elf/ehdr_start-missing.d: New file.
        * ld-elf/ehdr_start-weak.d: New file.
        * ld-mips-elf/ehdr_start-2.nd: Expect __ehdr_start to be global.

The patch is on trunk and the 2.24 branch I believe.

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

fixed in trusty and utopic, won't fix anymore for saucy

Changed in binutils (Ubuntu Saucy):
status: New → Won't Fix
Changed in binutils (Ubuntu Trusty):
status: New → Fix Released
Changed in binutils (Ubuntu Utopic):
status: New → Fix Released
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.