diff usr/src/cmd/sgs/include/sparc/machdep_sparc.h @ 11734:d29dc9c2b6c5

6916788 ld version 2 mapfile syntax PSARC/2009/688 Human readable and extensible ld mapfile syntax
author Ali Bahrami <Ali.Bahrami@Sun.COM>
date Mon, 22 Feb 2010 09:19:31 -0700
parents 47013accbd9c
children d7ef53deac3f
line wrap: on
line diff
--- a/usr/src/cmd/sgs/include/sparc/machdep_sparc.h	Sun Feb 21 21:37:22 2010 -0800
+++ b/usr/src/cmd/sgs/include/sparc/machdep_sparc.h	Mon Feb 22 09:19:31 2010 -0700
@@ -23,7 +23,7 @@
  *	Copyright (c) 1988 AT&T
  *	  All Rights Reserved
  *
- * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  *
  * Global include file for all sgs SPARC machine dependent macros, constants
@@ -186,9 +186,15 @@
 #define	M_PLT_SHF_FLAGS	(SHF_ALLOC | SHF_WRITE | SHF_EXECINSTR)
 
 /*
- * Make data segment information transparent to the common code.
+ * Make default data segment and stack flags transparent to the common code.
  */
 #define	M_DATASEG_PERM	(PF_R | PF_W | PF_X)
+#ifdef _ELF64
+#define	M_STACK_PERM	(PF_R | PF_W)
+#else
+#define	M_STACK_PERM	(PF_R | PF_W | PF_X)
+#endif
+
 
 /*
  * Define a set of identifies for special sections.  These allow the sections