Skip to content

Commit fdeed8e

Browse files
committed
update test source code generation
1 parent 1a12074 commit fdeed8e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/platforms/test.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
/* function to test the generation
22
* of assembly code under e.g. Gcc.
33
* use by calling, for example:
4-
* cc -DSTACKMAN_SWITCH_IMPL -S -m32 -fcf-protection=none test.c
5-
* and examinine the generated test.s assembly code. The fcf-protection
4+
* cc -S -m32 -fcf-protection=none test.c
5+
* and examinine the generated test.s assembly code.
6+
* -m32 selects 32 bit mode, use other directives to select a different platform.
7+
* The -fcf-protection
68
* flag disables generation of intel CET compatible code, but stack switching
79
* is not compatible with the proposed shadow stack.
810
*/
911

1012
#define STACKMAN_VERBOSE
13+
#define STACKMAN_SWITCH_IMPL
14+
#define STACKMAN_INLINE_ASM 1
15+
#define STACKMAN_BUILD_LIB /* so that we don´t generate indirection shims */
1116
#include "platform.h"

0 commit comments

Comments
 (0)