[Bug c/98634] gcc 4.8.5 - 9.3.0 on target x86_64, when compile a exe and linking with a so, and exe's source file extern a var, the final exe has the var with the same name with the one in the so file

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jan 12 11:13:47 GMT 2021


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is called a copy relocation.  I suspect the GCC you are using is
defaulting to PIE too.


More information about the Gcc-bugs mailing list