From 93ab9c0de7ba4a477720622c7e772d76f646e3f5 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 11 Aug 2017 16:36:28 +0100 Subject: 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. --- ld/lexsup.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ld/lexsup.c') 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 -- cgit v1.1