diff --git a/test/elf/aarch64-hello-static.sh b/test/elf/aarch64-hello-static.sh index 698be689ee..88878f5795 100755 --- a/test/elf/aarch64-hello-static.sh +++ b/test/elf/aarch64-hello-static.sh @@ -24,7 +24,7 @@ int main() { } EOF -aarch64-linux-gnu-gcc -B"`dirname "$mold"`" -o $t/exe $t/a.o -static +aarch64-linux-gnu-gcc -B. -o $t/exe $t/a.o -static readelf -p .comment $t/exe | grep -qw mold diff --git a/test/elf/lto-gcc.sh b/test/elf/lto-gcc.sh index 04540075a3..e4ba9af1f9 100755 --- a/test/elf/lto-gcc.sh +++ b/test/elf/lto-gcc.sh @@ -19,7 +19,7 @@ int main() { } EOF -gcc -B"$(pwd)" -o $t/exe -flto $t/a.o +gcc -B. -o $t/exe -flto $t/a.o $t/exe | grep -q 'Hello world' echo OK