This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] Document -z text, -z notext and -z textoff
- From: H.J.Lu <hjl at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 6 Feb 2015 18:02:07 -0000
- Subject: [binutils-gdb] Document -z text, -z notext and -z textoff
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8dfef1bd769223b3abfffabf8bd13a9b74258231
commit 8dfef1bd769223b3abfffabf8bd13a9b74258231
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Feb 6 10:01:35 2015 -0800
Document -z text, -z notext and -z textoff
* ld.texinfo: Document -z text, -z notext and -z textoff.
* emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
-z text, -z notext and -z textoff.
Diff:
---
ld/ChangeLog | 6 ++++++
ld/emultempl/elf32.em | 6 ++++++
ld/ld.texinfo | 9 +++++++++
3 files changed, 21 insertions(+)
diff --git a/ld/ChangeLog b/ld/ChangeLog
index e838ac8..52c3ba0 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,11 @@
2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
+ * ld.texinfo: Document -z text, -z notext and -z textoff.
+ * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
+ -z text, -z notext and -z textoff.
+
+2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
+
* configure.ac: Add AC_FUNC_MMAP.
* config.in: Regenerated.
* configure: Likewise.
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
index 34a729e..618e20a 100644
--- a/ld/emultempl/elf32.em
+++ b/ld/emultempl/elf32.em
@@ -2454,6 +2454,12 @@ EOF
if test x"$GENERATE_SHLIB_SCRIPT" = xyes; then
fragment <<EOF
fprintf (file, _("\
+ -z text Treat DT_TEXTREL in shared object as error\n"));
+ fprintf (file, _("\
+ -z notext Don't treat DT_TEXTREL in shared object as error\n"));
+ fprintf (file, _("\
+ -z textoff Don't treat DT_TEXTREL in shared object as error\n"));
+ fprintf (file, _("\
-z norelro Don't create RELRO program header\n"));
fprintf (file, _("\
-z now Mark object non-lazy runtime binding\n"));
diff --git a/ld/ld.texinfo b/ld/ld.texinfo
index f6e0117..701cd3b 100644
--- a/ld/ld.texinfo
+++ b/ld/ld.texinfo
@@ -1106,6 +1106,15 @@ Marks the object can not be dumped by @code{dldump}.
@item noexecstack
Marks the object as not requiring executable stack.
+@item text
+Treat DT_TEXTREL in shared object as error.
+
+@item notext
+Don't treat DT_TEXTREL in shared object as error.
+
+@item textoff
+Don't treat DT_TEXTREL in shared object as error.
+
@item norelro
Don't create an ELF @code{PT_GNU_RELRO} segment header in the object.