Subject: Re: gcc -nostdlib and shared libs
To: Todd Vierling <firstname.lastname@example.org>
From: Cherry G. Mathew <email@example.com>
Date: 03/15/2005 07:03:53
On Mon, 14 Mar 2005 19:54:13 -0500 (EST), Todd Vierling <firstname.lastname@example.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