Mercurial > pub > dyncall > dyncall
comparison dyncallback/dyncall_callback_x86.S @ 166:d5705f226298
- added portasm support for adding .section .note.GNU-stack "hints" marking generated .o files from assembly files as not needing an executable stack
* needed to be done manually in assembly files, in contrast to C translation units where gcc adds such hints automatically
* this is for security, and better/easier integration of dyncall into other projects and builds, as dyncall doesn't need an executable stack
* thanks to Thorsten Behrens for bringing this up to our intention and providing a first analysis
* currently only done on Linux, but will be added across other platforms (where applicable) after some testing
author | cslag |
---|---|
date | Thu, 05 Jan 2017 11:07:29 +0100 |
parents | 572aff021627 |
children | 7520e2260097 |
comparison
equal
deleted
inserted
replaced
165:572aff021627 | 166:d5705f226298 |
---|---|
108 LOCAL(return_void): | 108 LOCAL(return_void): |
109 RET() | 109 RET() |
110 END_PROC(dcCallbackThunkEntry) | 110 END_PROC(dcCallbackThunkEntry) |
111 END_ASM | 111 END_ASM |
112 | 112 |
113 | |
114 SECTION_NOTE_NXSTACK /* mark object as not needing execstack */ | |
115 |