This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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'


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]