[PATCH] allow easier overriding of ELF_DYNAMIC_INTERPRETER

Ian Lance Taylor ian@airs.com
Sun Feb 17 09:17:00 GMT 2002


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



More information about the Binutils mailing list