|
Message-ID: <20120524060624.GY163@brightrain.aerifal.cx> Date: Thu, 24 May 2012 02:06:24 -0400 From: Rich Felker <dalias@...ifal.cx> To: musl@...ts.openwall.com Subject: Re: Static PIE! (experimental) On Thu, May 24, 2012 at 12:57:52AM -0400, Rich Felker wrote: > Command to use to link: > > gcc -static -pie -fPIE -nostartfiles Zcrt1.s Zcrt2.c \ > /usr/lib/crt[in].o -Wl,-T,elf_i386.xd "$@" One thing I forgot: it's possible that if -fPIC was used instead of -fPIE for some files, -Wl,-Bsymbolic should be added to the command line. Not sure if it's ever needed but it can't hurt. Rich
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.