aboutsummaryrefslogtreecommitdiff
path: root/ld/ld.texinfo
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-11-20 22:16:05 +0000
committerH.J. Lu <hjl.tools@gmail.com>2012-11-20 22:16:05 +0000
commitb039ef04574106adbac611394b008109967d2a73 (patch)
tree4a43b619abbc3c62b8d267a0797003717c5d77e9 /ld/ld.texinfo
parentace21957447369d273622e8869f1183549cded3d (diff)
downloadgdb-b039ef04574106adbac611394b008109967d2a73.zip
gdb-b039ef04574106adbac611394b008109967d2a73.tar.gz
gdb-b039ef04574106adbac611394b008109967d2a73.tar.bz2
Implement ELF linker -z global option
ld/ * ld.texinfo: Document "-z global". * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Support "-z global". (gld${EMULATION_NAME}_list_options): Likewise. ld/testsuite/ * ld-elf/global1.d: New file.
Diffstat (limited to 'ld/ld.texinfo')
-rw-r--r--ld/ld.texinfo5
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/ld.texinfo b/ld/ld.texinfo
index 4a8118f..7670e96 100644
--- a/ld/ld.texinfo
+++ b/ld/ld.texinfo
@@ -1024,6 +1024,11 @@ shared libraries are still allowed.
@item execstack
Marks the object as requiring executable stack.
+@item global
+This option is only meaningful when building a shared object. It makes
+the symbols defined by this shared object available for symbol resolution
+of subsequently loaded libraries.
+
@item initfirst
This option is only meaningful when building a shared object.
It marks the object so that its runtime initialization will occur