Re: RFC: Extending --with-advance-toolchain to aarch64

2019-10-11 Thread Florian Weimer
* Steve Ellcey: > I am not sure, but my guess is that it is because I am building > binutils (including ld) using --with-sysroot. That could be the case. I guess there are two conflicting use cases for sysroots, one where you want to mangle run-time paths to confine things to the sysroot, and on

Re: RFC: Extending --with-advance-toolchain to aarch64

2019-10-10 Thread Steve Ellcey
On Thu, 2019-10-10 at 15:38 -0300, Tulio Magno Quites Machado Filho wrote: > > > Let me first describe what I do now: > > > > configure/build BINUTILS with --prefix=${X} --with-sysroot=${X} > > configure/build an initial GCC (all-gcc all-target-libgcc) with > > --prefix=${X} --with-sysroot=${

Re: RFC: Extending --with-advance-toolchain to aarch64

2019-10-10 Thread Tulio Magno Quites Machado Filho
Steve Ellcey writes: > I have a question about building a toolchain that uses (at run time) a > dynamic linker and system libraries and headers that are in a non-standard > place. > > I just noticed the IBM --with-advance-toolchain option and I would > like to replicate it for aarch64. > > Let me

Re: RFC: Extending --with-advance-toolchain to aarch64

2019-10-10 Thread Steve Ellcey
On Thu, 2019-10-10 at 18:41 +0200, Florian Weimer wrote: > > * Steve Ellcey: > > > I would like these used by default so I took some ideas from > > --with-advance-toolchain and used that to automatically add these options > > to LINK_SPEC (see attached patch). I can compile and link a program wi

Re: RFC: Extending --with-advance-toolchain to aarch64

2019-10-10 Thread Florian Weimer
* Steve Ellcey: > I would like these used by default so I took some ideas from > --with-advance-toolchain and used that to automatically add these options > to LINK_SPEC (see attached patch). I can compile and link a program with > this setup, but when I run the program I get: > > % ./x > Inconsi

Re: RFC: Extending --with-advance-toolchain to aarch64

2019-10-10 Thread Steve Ellcey
On Thu, 2019-10-10 at 10:49 +1030, Alan Modra wrote: > On Wed, Oct 09, 2019 at 10:29:48PM +, Steve Ellcey wrote: > > I have a question about building a toolchain that uses (at run > > time) a > > dynamic linker and system libraries and headers that are in a non- > > standard > > place. > > I h

Re: RFC: Extending --with-advance-toolchain to aarch64

2019-10-09 Thread Alan Modra
On Wed, Oct 09, 2019 at 10:29:48PM +, Steve Ellcey wrote: > I have a question about building a toolchain that uses (at run time) a > dynamic linker and system libraries and headers that are in a non-standard > place. I had scripts a long time ago to build a complete toolchain including glibc t

RFC: Extending --with-advance-toolchain to aarch64

2019-10-09 Thread Steve Ellcey
I have a question about building a toolchain that uses (at run time) a dynamic linker and system libraries and headers that are in a non-standard place. I just noticed the IBM --with-advance-toolchain option and I would like to replicate it for aarch64. Let me first describe what I do now: confi