Subject: Re: gcc -nostdlib and shared libs
To: Todd Vierling <tv@duh.org>
From: Cherry G. Mathew <cherry.g.mathew@gmail.com>
List: tech-toolchain
Date: 03/15/2005 07:03:53
On Mon, 14 Mar 2005 19:54:13 -0500 (EST), Todd Vierling <tv@duh.org> wrote:
> On Tue, 15 Mar 2005, Cherry G. Mathew wrote:
> 
> > I'm trying to get an elf binary with .dynamic and friends available
> > and _DYNAMIC defined properly. ( Essentially a shared obj. ) It looks
> > like doing LDFLAGS +=  -nostdlib makes linking static.
> 
> Why does -shared (without -nostdlib) not work for you?
> 

It won't work for boot code. The dynamic relocator code within the
boot code walks through the .dynamic section to resolve run-time
linking.

-- 
~Cherry