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
parent
commit
1546599a13
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      common_arm.h

+ 9
- 1
common_arm.h View File

@@ -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



Loading…
Cancel
Save