This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] add static-linked PIE support
- From: Rich Felker <dalias at libc dot org>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 30 Sep 2015 01:21:06 -0400
- Subject: Re: [PATCH] add static-linked PIE support
- Authentication-results: sourceware.org; auth=none
- References: <20150930013407 dot GA9305 at brightrain dot aerifal dot cx>
On Tue, Sep 29, 2015 at 09:34:07PM -0400, Rich Felker wrote:
> This is the gcc side support of the static-linked PIE functionality
> added to binutils in commit 9b8b325a1f4cdaf235e7d803849dde6ededec865:
And unfortunately I wasn't aware of this:
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=e9abca4f4a48fa8b1fd9778f6a3cd748e099e3bb
Now I need to figure out the magic spec macros going on there and work
around the fact that default-pie mode has -static implicitly turning
default-pie off while we need it to stay on... Would a new
--enable-default-pie=always mode be appropriate? I don't think people
would be happy with changing the default, especially since glibc does
not have an rcrt1.o (yet)...
Rich