summaryrefslogtreecommitdiff
path: root/ld/ld.texinfo
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-11-20 22:16:03 +0000
committerH.J. Lu <hjl.tools@gmail.com>2012-11-20 22:16:03 +0000
commitfc06ddc33b2732dbca1355e0864aa32723b0ed9c (patch)
tree513cf58b94b397f260e2be15328ca1d83973c925 /ld/ld.texinfo
parent16f3d6daa3eb8ee9653d8d75d34c24583f608d16 (diff)
downloadbinutils-redhat-fc06ddc33b2732dbca1355e0864aa32723b0ed9c.tar.gz
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 4a8118ff87..7670e96983 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