aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/audit.exp
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/testsuite/ld-elf/audit.exp
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/testsuite/ld-elf/audit.exp')
-rw-r--r--ld/testsuite/ld-elf/audit.exp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/audit.exp b/ld/testsuite/ld-elf/audit.exp
index 83ee355..b7af4b7 100644
--- a/ld/testsuite/ld-elf/audit.exp
+++ b/ld/testsuite/ld-elf/audit.exp
@@ -60,6 +60,9 @@ set build_tests {
{"Run with -lusesaudit -lusesaudit2"
"-Ltmpdir/ -lusesaudit -lusesaudit2" ""
{main.c} {{"readelf" {-d} "depaudit2.rd"}} "useslibusesaudit2.out"}
+ {"Link with -z globalaudit"
+ "-Wl,-Paudit.so -Wl,-z,globalaudit" ""
+ {main.c} {{"readelf" {-d} "globalaudit.rd"}} "globalaudit.out"}
}
run_cc_link_tests $build_tests