Add linker option: --warn-shared-textrel to produce warnings when adding a

DT_TEXTREL to a shared object.
This commit is contained in:
Nick Clifton 2004-10-07 14:45:23 +00:00
parent 02a32322f3
commit 7c3db8ea2e
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2004-10-07 Jeff Baker <jbaker@qnx.com>
* bfdlink.h (bfd_link_info): Add bitfield: warn_shared_textrel.
2004-09-17 Paul Brook <paul@codesourcery.com>
* elf/arm.h: Remove R_ARM_STKCHK and R_ARM_THM_STKCHK.

View File

@ -308,6 +308,9 @@ struct bfd_link_info
/* TRUE if PT_GNU_RELRO segment should be created. */
unsigned int relro: 1;
/* TRUE if we should warn when adding a DT_TEXTREL to a shared object. */
unsigned int warn_shared_textrel: 1;
/* What to do with unresolved symbols in an object file.
When producing executables the default is GENERATE_ERROR.
When producing shared libraries the default is IGNORE. The