This is the mail archive of the gas2@sourceware.cygnus.com mailing list for the gas2 project.


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

Re: A bug in gnu ld 2.5.0?


   From: hjl@nynexst.com (H.J. Lu)
   Date: Tue, 18 Oct 94 13:01:22 EDT

   Could someone please explain to me that why ld 2.5.0 for elf_i386
   still sets the interpreter even if -static is passed to ld?

The interpreter is required if any object involved in the link
requires a global offset table or a procedure linkage table.  The
interpreter is required in order to initialize these tables.

-static does not mean ``create a static object.''  It means ``do not
search the dynamic libraries by default.''  If you are linking in an
object with a GOT or a PLT, then you must have an interpreter, and ld
will give you one.

If you are certain that all objects you are linking are static, then
set a breakpoint on bfd_elf32_link_create_dynamic_sections and find
out why it is being called.

Ian