1
1
mirror of https://github.com/rui314/mold.git synced 2024-09-21 01:47:11 +03:00

[ELF] Fix a test for AArch64

This commit is contained in:
Rui Ueyama 2021-11-27 21:03:31 +09:00
parent 8ae43210e7
commit 1219d3250c

View File

@ -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 <<EOF | cc -o $t/a.o -c -xc -
cat <<EOF | cc -o $t/a.o -fPIC -c -xc -
#include <stdio.h>
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