bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/29310] [2.39 Regression] copy relocation against non-copyable pr


From: nsz at gcc dot gnu.org
Subject: [Bug ld/29310] [2.39 Regression] copy relocation against non-copyable protected symbol `__cxa_ pure_virtual' on aarch64-linux-gnu
Date: Fri, 01 Jul 2022 13:12:16 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=29310

Szabolcs Nagy <nsz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nsz at gcc dot gnu.org

--- Comment #3 from Szabolcs Nagy <nsz at gcc dot gnu.org> ---
linking lto1 does not fail (in the build log), gnat1 does.

i don't know how __cxa_pure_virtual ends up being protected, but
the link uses -static-libstdc++ where the definition should be,
so copy reloc should not happen and thus the error is wrong.

somethings that may help debugging:

check `readelf -aW gnat1 |grep __cxa_pure_virtual` after linking
with old binutils (is there any reloc? is it protected?)

pass  -Wl,-y,__cxa_pure_virtual to the failing link (does the
definition come from static libstdc++?).

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]