Regarding "-z lazyload" flag in gnu linker

Alan Modra amodra@bigpond.net.au
Thu Sep 13 02:26:00 GMT 2007


On Thu, Sep 13, 2007 at 10:15:54AM +0900, Bhushan Verma wrote:
> I have gone one document in which this is written that "-z lazyload " option
> is not supported in gnu ld.
> Is it true? if yes then is there any way how to set this flag values using
> gnu linker.

That is true.  Implementing support shouldn't be too hard.  See
ld/emultempl/elf32.em for existing -z support.  You'll need to add a
new field to struct bfd_link_info to pass POSFLAGS_1 around, and
arrange to emit DT_POSFLAGS_1 in bfd_elf_size_dynamic_sections.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list