This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Linker problem to create .interp section


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]