[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/12366] New: assertion failure with STT_GNU_IFUNC symbols on x86_

From: richard.sandiford at linaro dot org
Subject: [Bug ld/12366] New: assertion failure with STT_GNU_IFUNC symbols on x86_64
Date: Wed, 5 Jan 2011 16:42:26 +0000


           Summary: assertion failure with STT_GNU_IFUNC symbols on x86_64
           Product: binutils
           Version: 2.22 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
        AssignedTo: address@hidden
        ReportedBy: address@hidden

Created attachment 5181
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5181
Shell script to reproduce bug

The x86 and x86_64 IFUNC code assumes that check_relocs can rely on def_regular
being set for all regular definitions.  That's not true, because def_regular is
set by the same pass that calls check_relocs, and doesn't therefore take into
account regular definitions in later objects.  Everything works if the regular
definition comes before the regular use, but not the other way round.

I've attached a simple example.  The link order in the example gives:

./ld/ld-new: BFD (GNU Binutils) internal error, aborting at
line 2802 in elf_x86_64_relocate_section

./ld/ld-new: Please report this bug.

But linking bar.o before foo.o works as expected.

Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]