Refs #262. Added executable stack markings.

This commit is contained in:
Zhang Xianyi 2013-07-28 00:09:40 +08:00
parent 6e0db36373
commit a2930664f4
7 changed files with 46 additions and 6 deletions

View File

@ -79,5 +79,9 @@ In chronological order:
* [2013-07-11] create openblas_get_parallel to retrieve information which parallelization * [2013-07-11] create openblas_get_parallel to retrieve information which parallelization
model is used by OpenBLAS. model is used by OpenBLAS.
* Sébastien Fabbro <bicatali@gentoo.org>
* [2013-07-24] Modify makefile to respect user's LDFLAGS
* [2013-07-24] Add stack markings for GNU as arch-independent for assembler files
* [Your name or handle] <[email or website]> * [Your name or handle] <[email or website]>
* [Date] [Brief summary of your changes] * [Date] [Brief summary of your changes]

View File

@ -150,9 +150,17 @@ REALNAME:
#define PROFCODE .prologue 0 #define PROFCODE .prologue 0
#endif #endif
#if defined(__linux__) && defined(__ELF__)
#define GNUSTACK .section .note.GNU-stack,"",%progbits
#else
#define GNUSTACK
#endif
#define EPILOGUE \ #define EPILOGUE \
.end REALNAME; \ .end REALNAME; \
.ident VERSION .ident VERSION; \
GNUSTACK
#endif #endif
#ifdef DOUBLE #ifdef DOUBLE

View File

@ -379,8 +379,15 @@ REALNAME:
#define PROFCODE #define PROFCODE
#endif #endif
#if defined(__linux__) && defined(__ELF__)
#define GNUSTACK .section .note.GNU-stack,"",%progbits
#else
#define GNUSTACK
#endif
#define EPILOGUE \ #define EPILOGUE \
.endp REALNAME .endp REALNAME ; \
GNUSTACK
#define START_ADDRESS 0x20000fc800000000UL #define START_ADDRESS 0x20000fc800000000UL

View File

@ -235,10 +235,17 @@ REALNAME: ;\
.set noreorder ;\ .set noreorder ;\
.set nomacro .set nomacro
#if defined(__linux__) && defined(__ELF__)
#define GNUSTACK .section .note.GNU-stack,"",%progbits
#else
#define GNUSTACK
#endif
#define EPILOGUE \ #define EPILOGUE \
.set macro ;\ .set macro ;\
.set reorder ;\ .set reorder ;\
.end REALNAME .end REALNAME ;\
GNUSTACK
#define PROFCODE #define PROFCODE
#endif #endif

View File

@ -199,8 +199,17 @@ static __inline int blas_quickdivide(blasint x, blasint y){
.type REALNAME, #function; \ .type REALNAME, #function; \
.proc 07; \ .proc 07; \
REALNAME:; REALNAME:;
#if defined(__linux__) && defined(__ELF__)
#define GNUSTACK .section .note.GNU-stack,"",%progbits
#else
#define GNUSTACK
#endif
#define EPILOGUE \ #define EPILOGUE \
.size REALNAME, .-REALNAME .size REALNAME, .-REALNAME; \
GNUSTACK
#endif #endif
#endif #endif

View File

@ -301,7 +301,9 @@ REALNAME:
#define PROFCODE #define PROFCODE
#endif #endif
#define EPILOGUE .size REALNAME, .-REALNAME #define EPILOGUE \
.size REALNAME, .-REALNAME; \
.section .note.GNU-stack,"",%progbits
#endif #endif

View File

@ -372,7 +372,10 @@ REALNAME:
#define PROFCODE #define PROFCODE
#endif #endif
#define EPILOGUE .size REALNAME, .-REALNAME #define EPILOGUE \
.size REALNAME, .-REALNAME; \
.section .note.GNU-stack,"",%progbits
#endif #endif