bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/14590] ifunc problem: internal error, aborting at elf64-x86-64.c


From: matz at suse dot de
Subject: [Bug ld/14590] ifunc problem: internal error, aborting at elf64-x86-64.c line 3175 in elf_x86_64_relocate_section
Date: Mon, 17 Sep 2012 15:31:45 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=14590

--- Comment #1 from Michael Matz <matz at suse dot de> 2012-09-17 15:31:45 UTC 
---
The problem seems to be specific to common symbols.  With -fno-common
it goes away.  The hash slot for the 'index' symbol get type STT_GNU_IFUNC
in elf_link_add_object_symbols when reading the libc.a symbol table,
even though it's only a weak def, and the slot referred to STT_OBJECT before.

We don't get a type-changed warning because type_change_ok is true.
I think we shouldn't regard weak defs to override common symbols.
But whatever we do, we must not segfault here, and preferrably still generate
expected code (as in, all references to index resolving to the common symbol).

-- 
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]