diff options
author | Nick Clifton <nickc@redhat.com> | 2017-08-11 16:36:28 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2017-08-11 16:36:28 +0100 |
commit | 93ab9c0de7ba4a477720622c7e772d76f646e3f5 (patch) | |
tree | e970b9fea358a9fe4b8cf06865dcb76c02d2ae48 /ld/emultempl | |
parent | 9593aade74f0da0c08a4ab55e4c59173b07b1f63 (diff) | |
download | gdb-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/emultempl')
-rw-r--r-- | ld/emultempl/elf32.em | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index 9ac1840..748f56b 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -2676,6 +2676,10 @@ fragment <<EOF link_info.noexecstack = TRUE; link_info.execstack = FALSE; } + else if (strcmp (optarg, "globalaudit") == 0) + { + link_info.flags_1 |= DF_1_GLOBAUDIT; + } EOF if test x"$GENERATE_SHLIB_SCRIPT" = xyes; then |