make stack not executable in assembled files
FIXES 125491
Change-Id: I396680b6877843201f6c07d5607385044abd5e74
Reviewed-on: http://gerrit.openafs.org/818
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit
9bfd03d723a9cf17673f40513a7adde1d503bcbc)
Reviewed-on: http://gerrit.openafs.org/976
#include <lwp_elf.h>
+#if defined(__linux__) && defined(__ELF__)
+ .section .note.GNU-stack,"",%progbits
+#endif
+
.file "process.s"
.data
.text
*/
#include <lwp_elf.h>
+#if defined(__linux__) && defined(__ELF__)
+ .section .note.GNU-stack,"",%progbits
+#endif
.file "process.s"
#include <afs/param.h>
/*#endif /* AFS_DJGPP_ENV */
+#if defined(__linux__) && defined(__ELF__)
+ .section .note.GNU-stack,"",%progbits
+#endif
+
#if defined(__arm32__) || defined(__arm__)
/* register definitions */
fp .req r11
#define IGNORE_STDS_H 1
#include <afs/param.h>
- .file "process.s"
+#if defined(__linux__) && defined(__ELF__)
+ .section .note.GNU-stack,"",%progbits
+#endif
+
+ .file "process.s"
.globl savecontext
.type savecontext,%function
#define IGNORE_STDS_H 1
#include <afs/param.h>
- .file "process.s"
+#if defined(__linux__) && defined(__ELF__)
+ .section .note.GNU-stack,"",%progbits
+#endif
+
+ .file "process.s"
.globl savecontext
.type savecontext,%function
#define IGNORE_STDS_H
#include <afs/param.h>
+#if defined(__linux__) && defined(__ELF__)
+ .section .note.GNU-stack,"",%progbits
+#endif
+
#if defined(AFS_AIX32_ENV) && defined(RIOS)
/*
* This is never be referenced, and is only here as placeholder;