[Bug lto/105933] LTO ltrans object files does not have proper st_bind and st_visibility

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jun 14 08:05:21 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105933

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at gcc dot gnu.org,
                   |                            |rguenth at gcc dot gnu.org

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
You are refering to the LTRANS objects created from the LTRANS compile phase.
These should be perfectly valid to link and have correct st_bind/visibility,
but not necessarily the same as originally since link optimization combines
multiple TUs and distributes them to multiple LTRANS units, requiring former
local symbols to refer to each other from different LTRANS units.

Do you have a testcase that shows linking not-through-the-plugin doesn't work?


More information about the Gcc-bugs mailing list