Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Thu, 24 May 2012 02:06:24 -0400
From: Rich Felker <>
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.


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.