1 // clang -target x86_64-linux-gnu -shared -fPIC -lc dynamic-table.c \ 2 // -o dynamic-table-so.x86 -Wl,-f,aux.so -Wl,-F,filter.so 3 // clang -target mipsel-linux-gnu -shared -fPIC -lc dynamic-table.c \ 4 // -o dynamic-table-so.mips 5 // clang -target mipsel-linux-gnu -lc dynamic-table.c \ 6 // -o dynamic-table-exe.mips 7 // clang -target aarch64-linux-gnu -fPIC -shared dynamic-table.c\ 8 // -o dynamic-table-so.aarch64 9 int puts(const char *); 10 11 __thread int foo; 12 main(void)13int main(void) { 14 puts("Hello, World"); 15 foo = 0; 16 } 17