summaryrefslogtreecommitdiff
path: root/usr/src/cmd/sgs/include/sparc/machdep_sparc.h
diff options
context:
space:
mode:
authorAli Bahrami <Ali.Bahrami@Sun.COM>2010-02-22 09:19:31 -0700
committerAli Bahrami <Ali.Bahrami@Sun.COM>2010-02-22 09:19:31 -0700
commit69112edd987c28fa551d4f8d9362a84a45365f17 (patch)
tree26319d6d073c90c67126a3b5f0d86a55c8952ced /usr/src/cmd/sgs/include/sparc/machdep_sparc.h
parentbb664d7ba7a656b21763d44dfc2da581c11444af (diff)
downloadillumos-joyent-69112edd987c28fa551d4f8d9362a84a45365f17.tar.gz
6916788 ld version 2 mapfile syntax
PSARC/2009/688 Human readable and extensible ld mapfile syntax
Diffstat (limited to 'usr/src/cmd/sgs/include/sparc/machdep_sparc.h')
-rw-r--r--usr/src/cmd/sgs/include/sparc/machdep_sparc.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/usr/src/cmd/sgs/include/sparc/machdep_sparc.h b/usr/src/cmd/sgs/include/sparc/machdep_sparc.h
index fa361b6425..9ac5553a34 100644
--- a/usr/src/cmd/sgs/include/sparc/machdep_sparc.h
+++ b/usr/src/cmd/sgs/include/sparc/machdep_sparc.h
@@ -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 @@ extern "C" {
#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