FreeBSD x86 emit note.GNU-stack section

Submitted by Andreas Tobler on Dec. 15, 2011, 12:48 p.m.

Details

Message ID 4EE9ECB6.30000@fgznet.ch
State New
Headers show

Commit Message

Andreas Tobler Dec. 15, 2011, 12:48 p.m.
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  <andreast@fgznet.ch>

	* config/i386/freebsd.h (TARGET_ASM_FILE_END): Define.

Comments

Richard Henderson Dec. 15, 2011, 5:13 p.m.
On 12/15/2011 04:48 AM, Andreas Tobler wrote:
>     * config/i386/freebsd.h (TARGET_ASM_FILE_END): Define.

Ok everywhere.


r~

Patch hide | download patch | download mbox

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
+