https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95928
--- Comment #11 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to Andi Kleen from comment #9) > I think the STB_SECONDARY stuff is only needed if ld -r is used, but not for > ar Linker won't search archive to resolve weak definition. Since SECONDARY is between WEAK and undefined, linker will keep searching archive for strong definition to override secondary definition.