aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2017-05-15 07:36:18 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2017-05-15 07:36:18 +0000
commitc57508a3509763cabb910df5693abaf1cafed2ac (patch)
tree23b28c025e9dd0e712cb25dccb8d492451b7e380
parent7ff85099cb438c268c5e49e433897234f0fe2e49 (diff)
* config/sparc/lb1spc.S [__ELF__ && __linux__]: Emit .note.GNU-stack
section for a non-executable stack. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@248043 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--libgcc/ChangeLog5
-rw-r--r--libgcc/config/sparc/lb1spc.S6
2 files changed, 11 insertions, 0 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index c070a3d2a96..b00a190b6c7 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -1,3 +1,8 @@
+2017-05-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
+
+ * config/sparc/lb1spc.S [__ELF__ && __linux__]: Emit .note.GNU-stack
+ section for a non-executable stack.
+
2017-05-14 Krister Walfridsson <krister.walfridsson@gmail.com>
PR target/80600
diff --git a/libgcc/config/sparc/lb1spc.S b/libgcc/config/sparc/lb1spc.S
index b60bd5740e7..e6938646404 100644
--- a/libgcc/config/sparc/lb1spc.S
+++ b/libgcc/config/sparc/lb1spc.S
@@ -5,6 +5,12 @@
slightly edited to match the desired calling convention, and also to
optimize them for our purposes. */
+/* An executable stack is *not* required for these functions. */
+#if defined(__ELF__) && defined(__linux__)
+.section .note.GNU-stack,"",%progbits
+.previous
+#endif
+
#ifdef L_mulsi3
.text
.align 4