Re: Adding static-PIE support to binutils

2015-08-20 Thread Joseph Myers
On Thu, 20 Aug 2015, Rich Felker wrote: > On Wed, Aug 19, 2015 at 03:01:20PM +, Joseph Myers wrote: > > If a new option is added, of course it needs documenting in the ld manual > > (ld.texinfo). > > I can do that and resubmit the patch, but is there consensus that > adding a new option is a

Re: Adding static-PIE support to binutils

2015-08-20 Thread Rich Felker
On Wed, Aug 19, 2015 at 03:01:20PM +, Joseph Myers wrote: > If a new option is added, of course it needs documenting in the ld manual > (ld.texinfo). I can do that and resubmit the patch, but is there consensus that adding a new option is appropriate? Like I said before I mildly lean that way

Re: Adding static-PIE support to binutils

2015-08-19 Thread Joseph Myers
If a new option is added, of course it needs documenting in the ld manual (ld.texinfo). -- Joseph S. Myers jos...@codesourcery.com

Re: Adding static-PIE support to binutils

2015-08-18 Thread Cary Coutant
> Does static pie (ET_DYN with non-fixed load address, _DYNAMIC > relocations, but no PT_INTERP, DT_NEEDEDs, or symbolic relocations) > currently work with gold? If so, what is the way to request it? I > would say it would make sense to try to do things the same, but from > what you're saying it so

Re: Adding static-PIE support to binutils

2015-08-18 Thread Rich Felker
On Tue, Aug 18, 2015 at 09:34:45PM -0700, Cary Coutant wrote: > > This is OK to commit with a suitable ChangeLog. I think a separate ld > > option is best too, because historically -static and its aliases > > -Bstatic, -dn, -non_shared really are about what type of libraries are > > accepted rathe

Re: Adding static-PIE support to binutils

2015-08-18 Thread Cary Coutant
> This is OK to commit with a suitable ChangeLog. I think a separate ld > option is best too, because historically -static and its aliases > -Bstatic, -dn, -non_shared really are about what type of libraries are > accepted rather than choosing linker output type. Gold actually separates these con

Re: Adding static-PIE support to binutils

2015-08-18 Thread Rich Felker
On Wed, Aug 19, 2015 at 01:30:12PM +0930, Alan Modra wrote: > On Tue, Aug 18, 2015 at 08:58:43PM -0400, Rich Felker wrote: > > I've updated the patch to cover the changes needed for all the > > elf??-*.c target files (lots of code duplication already there), skip > > the clearing of command_line.in

Re: Adding static-PIE support to binutils

2015-08-18 Thread Alan Modra
On Tue, Aug 18, 2015 at 08:58:43PM -0400, Rich Felker wrote: > I've updated the patch to cover the changes needed for all the > elf??-*.c target files (lots of code duplication already there), skip > the clearing of command_line.interpreter, and based it on current git > master with your output_typ

Re: Adding static-PIE support to binutils

2015-08-18 Thread H.J. Lu
On Tue, Aug 18, 2015 at 5:58 PM, Rich Felker wrote: > On Tue, Aug 18, 2015 at 09:30:56AM -0700, H.J. Lu wrote: >> On Tue, Aug 18, 2015 at 9:08 AM, Rich Felker wrote: >> > On Tue, Aug 18, 2015 at 08:56:00AM -0700, H.J. Lu wrote: >> >> On Mon, Aug 17, 2015 at 8:44 PM, Rich Felker wrote: >> >> > On

Re: Adding static-PIE support to binutils

2015-08-18 Thread Rich Felker
On Tue, Aug 18, 2015 at 09:30:56AM -0700, H.J. Lu wrote: > On Tue, Aug 18, 2015 at 9:08 AM, Rich Felker wrote: > > On Tue, Aug 18, 2015 at 08:56:00AM -0700, H.J. Lu wrote: > >> On Mon, Aug 17, 2015 at 8:44 PM, Rich Felker wrote: > >> > On Mon, Aug 17, 2015 at 10:42:56PM -0400, Rich Felker wrote:

Re: Adding static-PIE support to binutils

2015-08-18 Thread H.J. Lu
On Tue, Aug 18, 2015 at 9:08 AM, Rich Felker wrote: > On Tue, Aug 18, 2015 at 08:56:00AM -0700, H.J. Lu wrote: >> On Mon, Aug 17, 2015 at 8:44 PM, Rich Felker wrote: >> > On Mon, Aug 17, 2015 at 10:42:56PM -0400, Rich Felker wrote: >> >> On Mon, Aug 17, 2015 at 02:19:34PM -0700, H.J. Lu wrote: >>

Re: Adding static-PIE support to binutils

2015-08-18 Thread Rich Felker
On Tue, Aug 18, 2015 at 08:56:00AM -0700, H.J. Lu wrote: > On Mon, Aug 17, 2015 at 8:44 PM, Rich Felker wrote: > > On Mon, Aug 17, 2015 at 10:42:56PM -0400, Rich Felker wrote: > >> On Mon, Aug 17, 2015 at 02:19:34PM -0700, H.J. Lu wrote: > >> > On Tue, Jun 23, 2015 at 9:18 PM, Rich Felker wrote:

Re: Adding static-PIE support to binutils

2015-08-18 Thread H.J. Lu
On Mon, Aug 17, 2015 at 8:44 PM, Rich Felker wrote: > On Mon, Aug 17, 2015 at 10:42:56PM -0400, Rich Felker wrote: >> On Mon, Aug 17, 2015 at 02:19:34PM -0700, H.J. Lu wrote: >> > On Tue, Jun 23, 2015 at 9:18 PM, Rich Felker wrote: >> > > For background on the static PIE model I'm working with, s

Re: Adding static-PIE support to binutils

2015-08-18 Thread Rich Felker
On Mon, Aug 17, 2015 at 10:29:41PM -0700, Cary Coutant wrote: > > So far, I've been prototyping static PIE support by having GCC pass > > the following options to ld instead of -static -pie: > > > > -static -shared -Bsymbolic > > > > This partly works, but since ld does not know it's produc

Re: Adding static-PIE support to binutils

2015-08-17 Thread Cary Coutant
> So far, I've been prototyping static PIE support by having GCC pass > the following options to ld instead of -static -pie: > > -static -shared -Bsymbolic > > This partly works, but since ld does not know it's producing a main > executable, it misses important details, including the abilit

Re: Adding static-PIE support to binutils

2015-08-17 Thread Rich Felker
On Mon, Aug 17, 2015 at 10:42:56PM -0400, Rich Felker wrote: > On Mon, Aug 17, 2015 at 02:19:34PM -0700, H.J. Lu wrote: > > On Tue, Jun 23, 2015 at 9:18 PM, Rich Felker wrote: > > > For background on the static PIE model I'm working with, see the > > > following post to the GCC list: > > > > > > h

Re: Adding static-PIE support to binutils

2015-08-17 Thread Rich Felker
On Mon, Aug 17, 2015 at 02:19:34PM -0700, H.J. Lu wrote: > On Tue, Jun 23, 2015 at 9:18 PM, Rich Felker wrote: > > For background on the static PIE model I'm working with, see the > > following post to the GCC list: > > > > https://gcc.gnu.org/ml/gcc/2015-06/msg8.html > > > > So far, I've been

Re: Adding static-PIE support to binutils

2015-08-17 Thread H.J. Lu
On Mon, Aug 17, 2015 at 3:43 PM, Rich Felker wrote: > On Mon, Aug 17, 2015 at 02:19:34PM -0700, H.J. Lu wrote: >> On Tue, Jun 23, 2015 at 9:18 PM, Rich Felker wrote: >> > For background on the static PIE model I'm working with, see the >> > following post to the GCC list: >> > >> > https://gcc.gn

Re: Adding static-PIE support to binutils

2015-08-17 Thread Rich Felker
On Mon, Aug 17, 2015 at 02:19:34PM -0700, H.J. Lu wrote: > On Tue, Jun 23, 2015 at 9:18 PM, Rich Felker wrote: > > For background on the static PIE model I'm working with, see the > > following post to the GCC list: > > > > https://gcc.gnu.org/ml/gcc/2015-06/msg8.html > > > > So far, I've been

Re: Adding static-PIE support to binutils

2015-08-17 Thread H.J. Lu
On Tue, Jun 23, 2015 at 9:18 PM, Rich Felker wrote: > For background on the static PIE model I'm working with, see the > following post to the GCC list: > > https://gcc.gnu.org/ml/gcc/2015-06/msg8.html > > So far, I've been prototyping static PIE support by having GCC pass > the following opti

Re: Adding static-PIE support to binutils

2015-08-16 Thread Rich Felker
Ping. On Wed, Jun 24, 2015 at 12:18:47AM -0400, Rich Felker wrote: > For background on the static PIE model I'm working with, see the > following post to the GCC list: > > https://gcc.gnu.org/ml/gcc/2015-06/msg8.html > > So far, I've been prototyping static PIE support by having GCC pass > t

Adding static-PIE support to binutils

2015-06-23 Thread Rich Felker
For background on the static PIE model I'm working with, see the following post to the GCC list: https://gcc.gnu.org/ml/gcc/2015-06/msg8.html So far, I've been prototyping static PIE support by having GCC pass the following options to ld instead of -static -pie: -static -shared -Bsym