From 68d55fe3f008459534e270cc7b54f122846466f9 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 4 Jun 2003 16:54:45 +0000 Subject: * as.c (show_usage): Document --execstack and --noexecstack. (parse_args): Add --execstack and --noexecstack. (main): Create .note.GNU-stack section if --execstack or --noexecstack was given on comand line, set its SHF_EXECINSTR bit. * as.h (flag_execstack, flag_noexecstack): New. --- gas/as.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gas/as.h') diff --git a/gas/as.h b/gas/as.h index 2c5a22c..2121964 100644 --- a/gas/as.h +++ b/gas/as.h @@ -436,6 +436,12 @@ COMMON int flag_strip_local_absolute; /* True if we should generate a traditional format object file. */ COMMON int flag_traditional_format; +/* TRUE if .note.GNU-stack section with SEC_CODE should be created */ +COMMON int flag_execstack; + +/* TRUE if .note.GNU-stack section with SEC_CODE should be created */ +COMMON int flag_noexecstack; + /* name of emitted object file */ COMMON char *out_file_name; -- cgit v1.1