Summary: | GNU LD produce stale dynamic table entries for symbols optimized out by LTO | ||
---|---|---|---|
Product: | binutils | Reporter: | Jan Hubicka <hubicka> |
Component: | ld | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | amodra |
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: | ||
Attachments: | untested patch |
Description
Jan Hubicka
2013-03-12 12:59:05 UTC
Created attachment 6938 [details]
untested patch
This may be as simple as not setting ref_regular for undefined syms in IR objects that have a definition in a shared library.
CVSROOT: /cvs/src Module name: src Changes by: amodra@sourceware.org 2013-03-22 23:35:55 Modified files: bfd : ChangeLog elflink.c Log message: PR ld/15270 * elflink.c (elf_link_add_object_symbols): Don't set def_regular or ref_regular for BFD_PLUGIN owned syms, or have them affect def_dynamic/ref_dynamic. (_bfd_elf_fix_symbol_flags): Don't set def_regular for BFD_PLUGIN owned syms. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=src&r1=1.5998&r2=1.5999 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elflink.c.diff?cvsroot=src&r1=1.475&r2=1.476 Fixed mainline |