This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: The difference in behavior between ld and gold when processing "start group/end group" option
- From: Alan Modra <amodra at gmail dot com>
- To: Nikola Ikonic <Nikola dot Ikonic at rt-rk dot com>
- Cc: binutils at sourceware dot org, Petar Jovanovic <Petar dot Jovanovic at rt-rk dot com>
- Date: Wed, 4 Mar 2015 09:46:26 +1030
- Subject: Re: The difference in behavior between ld and gold when processing "start group/end group" option
- Authentication-results: sourceware.org; auth=none
- References: <626f-54f5ed00-13-159dfd60 at 105572234>
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