[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/18745] --start-lib --end-lib picks a weak symbol definition a
From: |
amodra at gmail dot com |
Subject: |
[Bug gold/18745] --start-lib --end-lib picks a weak symbol definition ahead of a strong symbol definition |
Date: |
Fri, 31 Jul 2015 02:22:18 +0000 |
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.