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/lexsup.c | |
parent | 9593aade74f0da0c08a4ab55e4c59173b07b1f63 (diff) | |
download | binutils-93ab9c0de7ba4a477720622c7e772d76f646e3f5.zip binutils-93ab9c0de7ba4a477720622c7e772d76f646e3f5.tar.gz binutils-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/lexsup.c')
-rw-r--r-- | ld/lexsup.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ld/lexsup.c b/ld/lexsup.c index effa277..1adb302 100644 --- a/ld/lexsup.c +++ b/ld/lexsup.c @@ -1828,6 +1828,8 @@ elf_static_list_options (FILE *file) -z execstack Mark executable as requiring executable stack\n")); fprintf (file, _("\ -z noexecstack Mark executable as not requiring executable stack\n")); + fprintf (file, _("\ + -z globalaudit Mark executable requiring global auditing\n")); } static void |