This is the mail archive of the
mailing list for the GCC project.
Re: Patch to correct LINK_PIE_SPEC
On Mon, Nov 15, 2004 at 01:52:10PM +0100, Peter S. Mazinger wrote:
> > Why should it? GCC -pie option means:
> > 1) pass -pie to the linker if it supports it
> > 2) user appropriate startfiles and/or libraries for PIE generation
> yes, that's it, use appropiate startfiles (and this appropiate startfile
> should provide also path for Scrt1.o because the normal startfile
> definition won't be used)
So, can you summarize why do you think your patch is an improvement
over current situation?
If you use gcc -shared -nostartfiles -nostdlibs, it doesn't mean gcc
doesn't pass -shared to ld either, and -pie should certainly behave
consistently with that.