aboutsummaryrefslogtreecommitdiff
path: root/include/bfdlink.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2011-10-19 04:13:28 +0000
committerAlan Modra <amodra@gmail.com>2011-10-19 04:13:28 +0000
commitc192a1336807cc9515666b1ba5028b6e36d91a3a (patch)
treeb5cbdfa6dd2a03a8293174b24a42b3e1d2dbb5ed /include/bfdlink.h
parentf1a81b376af4c8f09ecb6b11334b87e5badfc340 (diff)
downloadgdb-c192a1336807cc9515666b1ba5028b6e36d91a3a.zip
gdb-c192a1336807cc9515666b1ba5028b6e36d91a3a.tar.gz
gdb-c192a1336807cc9515666b1ba5028b6e36d91a3a.tar.bz2
PR ld/13254
include/ * bfdlink.h (struct bfd_link_info): Add error_textrel. bfd/ * elflink.c (bfd_elf_final_link): Emit error_textrel error. ld/ * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add -z text, -z notext, -z textoff options for all targets having shared lib support.
Diffstat (limited to 'include/bfdlink.h')
-rw-r--r--include/bfdlink.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/bfdlink.h b/include/bfdlink.h
index c9e127c..be85329 100644
--- a/include/bfdlink.h
+++ b/include/bfdlink.h
@@ -337,6 +337,9 @@ struct bfd_link_info
/* TRUE if we should warn when adding a DT_TEXTREL to a shared object. */
unsigned int warn_shared_textrel: 1;
+ /* TRUE if we should error when adding a DT_TEXTREL. */
+ unsigned int error_textrel: 1;
+
/* TRUE if .hash section should be created. */
unsigned int emit_hash: 1;