aboutsummaryrefslogtreecommitdiff
path: root/ld/ld.texinfo
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2017-08-11 16:36:28 +0100
committerNick Clifton <nickc@redhat.com>2017-08-11 16:36:28 +0100
commit93ab9c0de7ba4a477720622c7e772d76f646e3f5 (patch)
treee970b9fea358a9fe4b8cf06865dcb76c02d2ae48 /ld/ld.texinfo
parent9593aade74f0da0c08a4ab55e4c59173b07b1f63 (diff)
downloadgdb-93ab9c0de7ba4a477720622c7e772d76f646e3f5.zip
gdb-93ab9c0de7ba4a477720622c7e772d76f646e3f5.tar.gz
gdb-93ab9c0de7ba4a477720622c7e772d76f646e3f5.tar.bz2
Add -z globalaudit linker command line option to set the DF_GLOBALAUDIT flag bit in the dynamic tags.
* emultempl/elf32.em (handle_option): Accept the -z globalaudit command line option. * lexsup.c (elf_static_list_options): Add -z globalaudit. * ld.texinfo: Document the support for the new command line option. * NEWS: Mention the new feature. * testsuite/ld-elf/audit.exp: Add a test of the -z globalaudit command line option. * testsuite/ld-elf/globalaudit.rd: New file: Expected output from readelf.
Diffstat (limited to 'ld/ld.texinfo')
-rw-r--r--ld/ld.texinfo8
1 files changed, 8 insertions, 0 deletions
diff --git a/ld/ld.texinfo b/ld/ld.texinfo
index ebe7e7b..bbfa9fd 100644
--- a/ld/ld.texinfo
+++ b/ld/ld.texinfo
@@ -1136,6 +1136,14 @@ 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 globalaudit
+This option is only meaningful when building a dynamic executable.
+This option marks the executable as requiring global auditing by
+setting the @code{DF_1_GLOBAUDIT} bit in the @code{DT_FLAGS_1} dynamic
+tag. Global auditing requires that any auditing library defined via
+the @option{--depaudit} or @option{-P} command line options be run for
+all dynamic objects loaded by the application.
+
@item initfirst
This option is only meaningful when building a shared object.
It marks the object so that its runtime initialization will occur