| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | . $(dirnamescip-shell system . . dirname. $0)/common.inc |
| 3 | |
| 4 | catscip-shell system . . cat. <<EOF | $CXX -o $t/a.o -c -xc++ - -fno-PIC |
| 5 | #include <stdio.h> |
| 6 | extern char _etext[]; |
| 7 | int main() { |
| 8 | printf("%p\n", _etext); |
| 9 | } |
| 10 | EOF |
| 11 | |
| 12 | $CXX -B. -o $t/exe $t/a.o -no-pie |
| 13 | readelfscip-shell system . . readelf. --unwind $t/exe | grepscip-shell system . . grep. "$($QEMU $t/exe) .*cantunwind" |