This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Linker problem to create .interp section
- From: Ian Lance Taylor <iant at google dot com>
- To: "Bhushan Verma" <bhushan dot verma at iap-online dot com>
- Cc: <binutils at sourceware dot org>
- Date: Wed, 18 Jun 2008 06:53:21 -0700
- Subject: Re: Linker problem to create .interp section
- References: <OIEOKFKBHBJGOGBPDDFIEEIHCEAA.bhushan.verma@iap-online.com>
"Bhushan Verma" <bhushan.verma@iap-online.com> writes:
> Now my question is why linker is not setting the dynamic linker using above
> command.
It's pretty awkward, and undocumented, but you need to have an input
object with a .interp section. GNU glibc does this in a source file:
const char __invoke_dynamic_linker__[] __attribute__ ((section (".interp")))
= RUNTIME_LINKER;
where RUNTIME_LINKER depends on the target. It can in general be
whatever you like; the -I option will override the contents and size
of the .interp section.
Ian