This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Regarding "-z lazyload" flag in gnu linker
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Bhushan Verma <bhushan dot verma at iap-online dot com>
- Cc: binutils at sourceware dot org
- Date: Thu, 13 Sep 2007 11:56:32 +0930
- Subject: Re: Regarding "-z lazyload" flag in gnu linker
- References: <OIEOKFKBHBJGOGBPDDFIMEKOCBAA.bhushan.verma@iap-online.com>
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