The difference in behavior between ld and gold when processing "start group/end group" option
Alan Modra
amodra@gmail.com
Tue Mar 3 23:16:00 GMT 2015
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
More information about the Binutils
mailing list