This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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]

Re: The difference in behavior between ld and gold when processing "start group/end group" option


On Tue, Mar 03, 2015 at 06:19:45PM +0100, Nikola Ikonic wrote:
> Which of these linkers behave correctly?

I would say, GNU ld.  The innermost group ought to be repeatedly
searched until no new objects are extracted from libraries, before
looking at any other input files.  GROUP ( libtest2.a libdummy.a )
ought to cause head_dummy.o to be extracted from libdummy.a then
test2.o from libtest2.a, before the linker considers libtest.a.

-- 
Alan Modra
Australia Development Lab, IBM


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