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:
parent
8590fd9947
commit
4b2f10d009
@ -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]'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user