diff --git a/test/elf/glibc-2.22-bug.sh b/test/elf/glibc-2.22-bug.sh index 7cf1733b..bfa09743 100755 --- a/test/elf/glibc-2.22-bug.sh +++ b/test/elf/glibc-2.22-bug.sh @@ -10,14 +10,14 @@ mkdir -p $t # if .rela.dyn and .rela.plt are not contiguous in a given DSO. # This test verifies that these sections are contiguous in mold's output. -cat < int main() { printf("Hello world\n"); } EOF -clang -fuse-ld=$mold -o $t/exe $t/a.o -readelf -W --sections $t/exe | fgrep -A1 .rela.dyn | fgrep -q .rela.plt +clang -fuse-ld=$mold -o $t/b.so -shared $t/a.o +readelf -W --sections $t/b.so | fgrep -A1 .rela.dyn | fgrep -q .rela.plt echo OK