Mercurial > pub > dyncall > dyncall
comparison portasm/portasm-x64.S @ 256:7520e2260097
- added to configure some detection on how to compile .s/.S with --noexecstack (or similar), as compilers' defaults are often insane
- since no-execstack handling is now in build, remove .note.GNU-stack section markers (were of limites use, anyways, b/c unportable or implemented inconsistently across platforms)
- some ToDo, etc. updates
author | Tassilo Philipp |
---|---|
date | Sat, 20 May 2017 00:02:59 +0200 |
parents | 91db39538e78 |
children | f5577f6bf97a |
comparison
equal
deleted
inserted
replaced
255:704c28fd9428 | 256:7520e2260097 |
---|---|
153 # define FLDS(X) flds X | 153 # define FLDS(X) flds X |
154 # define FLDL(X) fldl X | 154 # define FLDL(X) fldl X |
155 /* not available on some platforms, e.g. old solaris, so use K=V syntax # define SET(K,V) .set K,V */ | 155 /* not available on some platforms, e.g. old solaris, so use K=V syntax # define SET(K,V) .set K,V */ |
156 # define SET(K,V) K = V | 156 # define SET(K,V) K = V |
157 # define LOCAL(X) .X | 157 # define LOCAL(X) .X |
158 # if defined(ABI_ELF) && !defined(CC_SUN)/*syntax error*/ && !defined(OS_OpenBSD)/*does this by default, and better*/ && !defined(OS_DragonFlyBSD)/*does this by default, and better*/ | |
159 /* explicitly passing no args to mark stack nx */ | |
160 # define SECTION_NOTE_NXSTACK .section .note.GNU-stack,"",@progbits | |
161 # else | |
162 # define SECTION_NOTE_NXSTACK | |
163 # endif | |
164 #endif | 158 #endif |
165 | 159 |