1 /* Previously in TinyCC, ELF sections defined in assembly would always have the
2 execute bit not set, so you would get segmentation faults when code in these
3 sections was exectuted. This file is a minimal example of a file that will put
4 the resulting code in a non-executable section (and invoke it) prior to the fix.
8 void *memset(void *dst
, int c
, int len
);
11 ".section .text.nolibc_memset\n"
14 "xchgl %eax, %esi\n\t"
24 memset(&buf
[0], 'A', 9);