[Bug target/52717] thunk referenced in discarded section when building samba with -flto

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 26 08:14:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52717

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |lto
             Target|                            |sparc-*-linux
                 CC|                            |ebotcazou at gcc dot
                   |                            |gnu.org, hubicka at gcc dot
                   |                            |gnu.org
          Component|middle-end                  |target

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-03-26 08:13:03 UTC ---
Which binutils version are you using?  The symbol seems to be one that is
supposed to be provided by libgcc (see sparc.c:get_pc_thunk_name, used
by GOT register loading)

That stuff might simply not be set up properly for LTO (it does not seem
to be integrated with the cgraph).  Honza?  Eric?



More information about the Gcc-bugs mailing list