Browse Source
Merge pull request #5315 from loss-and-quick/arm-exec-stack
Add .note.GNU-stack in ARM epilogue to avoid writable stack
tags/v0.3.30
Martin Kroeker
GitHub
3 months ago
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
9 additions and
1 deletions
-
common_arm.h
|
|
@@ -114,7 +114,15 @@ static inline int blas_quickdivide(blasint x, blasint y){ |
|
|
|
OPENBLAS_ARM_TYPE_FUNCTION \ |
|
|
|
REALNAME: |
|
|
|
|
|
|
|
#define EPILOGUE |
|
|
|
#if defined(__ELF__) && defined(__linux__) |
|
|
|
# define GNUSTACK .section .note.GNU-stack,"",%progbits |
|
|
|
#else |
|
|
|
# define GNUSTACK |
|
|
|
#endif |
|
|
|
|
|
|
|
#define EPILOGUE \ |
|
|
|
GNUSTACK |
|
|
|
|
|
|
|
|
|
|
|
#define PROFCODE |
|
|
|
|
|
|
|