[Bug 1307539] [NEW] Abort in elflink.c when building glibc trunk

Will Newton will.newton at linaro.org
Mon Apr 14 14:10:57 UTC 2014


Public bug reported:


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 <mcgrathr at google.com>
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.

** Affects: binutils (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to binutils in Ubuntu.
https://bugs.launchpad.net/bugs/1307539

Title:
  Abort in elflink.c when building glibc trunk

Status in “binutils” package in Ubuntu:
  New

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 <mcgrathr at google.com>
  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/1307539/+subscriptions



More information about the foundations-bugs mailing list