diff --git a/test/elf/tlsdesc-initial-exec.sh b/test/elf/tlsdesc-initial-exec.sh index d47c26568c..aabcdae53e 100755 --- a/test/elf/tlsdesc-initial-exec.sh +++ b/test/elf/tlsdesc-initial-exec.sh @@ -29,11 +29,11 @@ EOF $CC -B. -o $t/exe1 $t/c.o $t/d.o $t/b.so $QEMU $t/exe1 | grep -q '^5 5 5$' -readelf -Wr $t/exe1 > $t/log1 -! grep -Eq 'TLS.?DESC|unrecognized:' $t/log1 || false +$OBJDUMP --dynamic-reloc $t/exe1 > $t/log1 +! grep -Eq 'TLS_?DESC' $t/log1 || false -$CC -B. -o $t/exe1 $t/c.o $t/d.o $t/b.so -Wl,--no-relax -$QEMU $t/exe1 | grep -q '^5 5 5$' +$CC -B. -o $t/exe2 $t/c.o $t/d.o $t/b.so -Wl,--no-relax +$QEMU $t/exe2 | grep -q '^5 5 5$' -readelf -Wr $t/exe1 > $t/log2 -grep -Eq 'TLS.?DESC|unrecognized:' $t/log2 +$OBJDUMP --dynamic-reloc $t/exe2 > $t/log2 +grep -Eq 'TLS_?DESC' $t/log2