https://sourceware.org/bugzilla/show_bug.cgi?id=18745
Alan Modra <amodra at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |amodra at gmail dot com Resolution|--- |INVALID --- Comment #1 from Alan Modra <amodra at gmail dot com> --- If the intent of --start-lib --stop-lib is to behave as if the object files enclosed were in an archive library, then gold is behaving correctly. (I'm assuming that your full ld.gold command line included the normal startup objects before --start-lib.) crt1.o references "main". This causes ld to extract foo.o from the conceptual archive to satisfy a strong undefined. There is no strong undefined foo at the time bar.o is processed, so bar.o is not "extracted". -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils