Debian Codegraph @

test/arch-x86_64-tbss-only.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2 . $(dirnamescip-shell system . . dirname. $0)/common.inc
3
4 # Test if grep supports backreferences
5 echoscip-shell system . . echo. abab | grepscip-shell system . . grep. -E '(ab)\1' || skip
6
7 catscip-shell system . . cat. <<EOF | $CC -o $t/a.o -c -xc -
8 __thread char foo;
9
10 __attribute__((section(".data.rel.ro.bar"), aligned(16*1024)))
11 char bar;
12
13 int main() {}
14 EOF
15
16 $CC -B. -o $t/exe $t/a.o
17 $QEMU $t/exe
18
19 readelfscip-shell system . . readelf. -W --segments $t/exe | grepscip-shell system . . grep. -E 'TLS +0x000([^ ][^ ][^ ]) 0x[^ ]+\1 '