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: "Bhushan Verma" <bhushan dot verma at iap-online dot com>
- To: "Alan Modra" <amodra at bigpond dot net dot au>
- Cc: <binutils at sourceware dot org>
- Date: Thu, 13 Sep 2007 20:51:26 +0900
- Subject: RE: Regarding "-z lazyload" flag in gnu linker
Dear Alan,
Thanks for your mail.
As you said this option is not supported in gld.
I have also verified this option in ld/emultempl/elf32.em .
This is not supported in this code.
Now I download the binutils source code from gnuarm site for my arm
toolchain.
I have found the "struct bfd_link_info" ininclude/bfdlink.h
and "bfd_elf_size_dynamic_sections()" function in bfd/elflink.c.
Now I have one doubt you maen I have to change only these files in this
strucure and function to support -z lazyload.
What shoul be the next step means I have to build binutils,glibc etc
One thig is there any one who alredy do the same as above.
regards
Bhushan
-----Original Message-----
From: binutils-owner@sourceware.org [mailto:binutils-owner@sourceware.org]On
Behalf Of Alan Modra
Sent: Thursday, September 13, 2007 11:27 AM
To: Bhushan Verma
Cc: binutils@sourceware.org
Subject: Re: Regarding "-z lazyload" flag in gnu linker
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