This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/85801] LTO linking fails to reconcile symbol from common an data sections (-fPIE -Wl,--as-needed -flto): unresolvable R_ARM_REL32 relocation against symbol `progname'
- From: "hjl.tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 16 May 2018 12:34:58 +0000
- Subject: [Bug lto/85801] LTO linking fails to reconcile symbol from common an data sections (-fPIE -Wl,--as-needed -flto): unresolvable R_ARM_REL32 relocation against symbol `progname'
- Auto-submitted: auto-generated
- References: <bug-85801-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85801
--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to rguenther@suse.de from comment #3)
>
> I see. But why's the resolution dependent on --as-needed?
Since with --as-needed, in the first pass, linker doesn't include
libxfs.so, pogram is set to COMMON. Without --as-needed, program
is resolved to definition in libxfs.so immediately. But this is
internal to linker and shouldn't make a difference.