* 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.
This commit is contained in:
Jakub Jelinek
2003-06-04 16:54:45 +00:00
parent b21fd293ac
commit 68d55fe3f0
3 changed files with 52 additions and 1 deletions

View File

@@ -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;