summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-10-07 14:45:24 +0000
committerNick Clifton <nickc@redhat.com>2004-10-07 14:45:24 +0000
commit6f6401f9e0ecc0ebe678c81536628a9e51e1d168 (patch)
tree77f9fd03db3f3614aad774dbf334e3ea08f24e7e /include
parentd0cfa40e05add927e319b318c160150d8e805411 (diff)
downloadgdb-6f6401f9e0ecc0ebe678c81536628a9e51e1d168.tar.gz
Add linker option: --warn-shared-textrel to produce warnings when adding a
DT_TEXTREL to a shared object.
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog4
-rw-r--r--include/bfdlink.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index b6c11568fb4..9ddcc72b228 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -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.
diff --git a/include/bfdlink.h b/include/bfdlink.h
index 5aa72d4b4c2..db276b02c99 100644
--- a/include/bfdlink.h
+++ b/include/bfdlink.h
@@ -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