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 rguent...@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.

Reply via email to