This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] allow easier overriding of ELF_DYNAMIC_INTERPRETER
- From: Ian Lance Taylor <ian at airs dot com>
- To: Hans-Peter Nilsson <hp at bitrange dot com>
- Cc: David O'Brien <obrien at FreeBSD dot org>, Nick Clifton <nickc at cambridge dot redhat dot com>, GNU Binutils mailing list <binutils at sources dot redhat dot com>
- Date: 17 Feb 2002 08:47:34 -0800
- Subject: Re: [PATCH] allow easier overriding of ELF_DYNAMIC_INTERPRETER
- References: <Pine.BSF.4.30.0202170512310.35947-100000@dair.pair.com>
Hans-Peter Nilsson <hp@bitrange.com> writes:
> I can't think of a reason where you'd have different
> ELF_DYNAMIC_INTERPRETER values for one and the same bfd vector.
There are many systems which can use the elf32-i386 BFD vector, but
which use different dynamic interpreters. The default dynamic
interpreter is specified in the i386 ELF ABI supplement. However,
different systems have chosen to use different locations for their
dynamic interpreter. This is in part done for reasons of cussedness.
It is in part done to provide a way to distinguish executables built
for different operating systems.
I think that the difference between two linkers which both use
elf32-i386 but which should use different dynamic interpreters is
exactly the sort of thing which linker emulations were designed to
handle. Therefore, I think that any non-default dynamic interpreter
should be specified in the linker emulation.
In fact, for standard ELF targets, I see that this is already possible
using the ELF_INTERPRETER_NAME variable in the ld/emulparams file.
Ian