1 | // Compile with $CC -nostdlib -shared TestModule.c -o TestModule.so |
---|---|
2 | // The actual contents of the test module is not important here. I am using this |
3 | // because it |
4 | // produces an extremely tiny (but still perfectly valid) module. |
5 | |
6 | void boom(void) { |
7 | char *BOOM; |
8 | *BOOM = 47; |
9 | } |
10 |