Merge pull request #5197 from e4t/z-arch-exec-stack
On zarch don't produce objects from assembler with a writable stack s…
This commit is contained in:
+9
-2
@@ -103,9 +103,16 @@ static inline int blas_quickdivide(blasint x, blasint y){
|
||||
.global REALNAME ;\
|
||||
.type REALNAME, %function ;\
|
||||
REALNAME:
|
||||
|
||||
|
||||
#define EPILOGUE
|
||||
#if defined(__ELF__) && defined(__linux__)
|
||||
# define GNUSTACK .section .note.GNU-stack,"",@progbits
|
||||
#else
|
||||
# define GNUSTACK
|
||||
#endif
|
||||
|
||||
#define EPILOGUE \
|
||||
.size REALNAME, .-REALNAME; \
|
||||
GNUSTACK
|
||||
|
||||
#define PROFCODE
|
||||
|
||||
|
||||
@@ -65,3 +65,6 @@ _cpuid:
|
||||
.subsections_via_symbols
|
||||
|
||||
#endif
|
||||
#if defined(__ELF__) && defined(__linux__)
|
||||
.section .note.GNU-stack,"",@progbits
|
||||
#endif
|
||||
|
||||
@@ -714,6 +714,8 @@ ld %f10,136(%r15)
|
||||
ld %f11,144(%r15)
|
||||
ld %f12,152(%r15)
|
||||
br %r14
|
||||
|
||||
EPILOGUE
|
||||
.end
|
||||
|
||||
|
||||
|
||||
@@ -604,6 +604,8 @@ ALIGN_2
|
||||
/*end*/
|
||||
lmg %r6,%r12,48(%r15)
|
||||
br %r14
|
||||
|
||||
EPILOGUE
|
||||
.end
|
||||
|
||||
|
||||
|
||||
@@ -845,6 +845,8 @@ ALIGN_2
|
||||
lmg %r6,%r12,48(%r15)
|
||||
#endif
|
||||
br %r14
|
||||
|
||||
EPILOGUE
|
||||
.end
|
||||
|
||||
|
||||
|
||||
@@ -864,6 +864,8 @@ ALIGN_2
|
||||
lmg %r6,%r12,48(%r15)
|
||||
#endif
|
||||
br %r14
|
||||
|
||||
EPILOGUE
|
||||
.end
|
||||
|
||||
|
||||
|
||||
@@ -719,6 +719,8 @@ ld %f10,136(%r15)
|
||||
ld %f11,144(%r15)
|
||||
ld %f12,152(%r15)
|
||||
br %r14
|
||||
|
||||
EPILOGUE
|
||||
.end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user