This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] Add --warn-shared-textrel option to ld
- From: Ned Ludd <solar at gentoo dot org>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: jbaker at qnx dot com, binutils at sources dot redhat dot com
- Date: Wed, 23 Mar 2005 13:42:05 -0500
- Subject: Re: [PATCH] Add --warn-shared-textrel option to ld
- References: <415C43A4.5070501@redhat.com> <415D6CC6.8040103@qnx.com> <416557CA.3080803@redhat.com>
- Reply-to: solar at gentoo dot org
Is the check for info->shared suitable for info->pie as well?
Would there be anyway to perhaps make this check a little more verbose
in it's diagnostic output in order to help aid in tracking down the
offending relocations in object files. Suns link editor seems to behave
this way when given a -z text option.
http://docs.sun.com/app/docs/doc/816-1386/6m7qcobl6?a=view (Under PIC)
On Thu, 2004-10-07 at 15:50 +0100, Nick Clifton wrote:
> Hi Jeff,
>
> >> * The formatting of the code added to elflink.c does not follow the
> >> GNU Coding Standards; (the opening curly brace should be on its own
> >> line).
> >>
> >> * The patch adds a new command line switch to the linker, but it does
> >> not add documentation on this switch to the ld.texinfo file, nor does it
> >> add a line to the ld/NEWS file.
>
> > How about now?
>
> Better - thanks:
>
> > 2004-10-01 Jeff Baker <jbaker@qnx.com>
> > * elflink.c (_bfd_elf_add_dynamic_entry): Add code to
> > warn if adding a DT_TEXTREL to a shared object and
> > --warn-shared-textrel was specified.
> >
> > 2004-10-01 Jeff Baker <jbaker@qnx.com>
> > * bfdlink.h (bfd_link_info): Add boolean
> > warn_shared_textrel.
> >
> > 2004-10-01 Jeff Baker <jbaker@qnx.com>
> > * NEWS: Added mention of --warn-shared-textrel option.
> > * ld.texinfo: Add documentation for --warn-shared-textrel.
> > * lexsup.c: Handle --warn-shared-textrel option.
>
> Approved and applied.
>
> Cheers
> Nick
>
--
Ned Ludd <solar@gentoo.org>