This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: RFC: allow a first "=" to mean sysroot for all paths in linker-scripts?
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- To: binutils at sourceware dot org
- Date: Wed, 28 May 2014 15:26:25 +0200
- Subject: Re: RFC: allow a first "=" to mean sysroot for all paths in linker-scripts?
- Authentication-results: sourceware.org; auth=none
Bump for the request for comments.
Also, tweaked bits in the TL;DR.
> From: Hans-Peter Nilsson <hp@axis.com>
> Date: Tue, 27 May 2014 04:32:30 +0200
> Is there a reason not to allow a first character '=' to mean
> sysroot-prefix for all paths inside linker scripts? Today, it's
> interpreted that way for SEARCH_DIR, but elsewhere it's a syntax
> error.
(when not quoted)
> GROUP ( /lib/libc.so.6 /lib/libc_nonshared.a AS_NEEDED ( /lib/ld.so.1 ) )
(for those who didn't read the original post, the suggestion is to
allow "GROUP ( =/lib/libc.so.6 =/lib/libc_nonshared.a AS_NEEDED ( =/lib/ld.so.1 ) )"
where the sysroot would be forced as opposed to "it depends".)
> For a non-sysrooted cross-toolchain you make the above line work
> by adjusting those paths manually in the installed script,
> prefixing with the installation prefix.
...but requires the sysroot be replicated within the sysroot
(e.g. by a parent-directory-chasing symlink) so your outermost
sysroot directory path component better not have a name-conflict
with a library. :)
brgds, H-P