From patchwork Thu Dec 15 12:48:54 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: FreeBSD x86 emit note.GNU-stack section Date: Thu, 15 Dec 2011 02:48:54 -0000 From: Andreas Tobler X-Patchwork-Id: 131694 Message-Id: <4EE9ECB6.30000@fgznet.ch> To: GCC Patches , Loren James Rittle Hi all, I'd like to commit the below patch to trunk and gcc-4.6.x. The functionality has been in the FreeBSD base compiler since nearly 12 months now. Is this ok for trunk, I know we're in stage three? And for gcc-4.6 branch? Tested with bootstrap/test (results follow) and 'readelf -l gcc/xgcc': GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000 RW 8 Thanks, Andreas 2011-12-15 Andreas Tobler * config/i386/freebsd.h (TARGET_ASM_FILE_END): Define. Index: config/i386/freebsd.h =================================================================== --- config/i386/freebsd.h (revision 182359) +++ config/i386/freebsd.h (working copy) @@ -145,3 +145,6 @@ #if FBSD_MAJOR >= 6 #define SUBTARGET32_DEFAULT_CPU "i486" #endif + +#define TARGET_ASM_FILE_END file_end_indicate_exec_stack +