Linker problem to create .interp section

Ian Lance Taylor iant@google.com
Wed Jun 18 17:33:00 GMT 2008


"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



More information about the Binutils mailing list