This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add --warn-shared-textrel option to ld


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>


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