1
1
mirror of https://github.com/rui314/mold.git synced 2024-10-04 16:48:04 +03:00

[ELF] Improve test

This commit is contained in:
Rui Ueyama 2022-01-03 20:15:04 +09:00
parent 8590fd9947
commit 4b2f10d009

View File

@ -12,6 +12,10 @@ cat <<EOF | clang -fPIC -c -o "$t"/a.o -xc -
void foo() {}
EOF
clang -o "$t"/b.so -shared "$t"/a.o
readelf --dynamic "$t"/b.so > "$t"/log
! fgrep -q 'Library soname' "$t"/log || false
clang -fuse-ld="$mold" -o "$t"/b.so -shared "$t"/a.o -Wl,-soname,foo
readelf --dynamic "$t"/b.so | fgrep -q 'Library soname: [foo]'