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.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to