mirror of
https://github.com/rui314/mold.git
synced 2024-10-26 13:10:46 +03:00
0f714710f0
With this change, all tests now pass on an actual POWER10 machine (gcc120.fsffrance.org).
16 lines
307 B
Bash
Executable File
16 lines
307 B
Bash
Executable File
#!/bin/bash
|
|
. $(dirname $0)/common.inc
|
|
|
|
cat <<EOF | $CC -fPIC -c -o $t/a.o -xc -
|
|
void foo1() {}
|
|
void foo2() {}
|
|
|
|
__asm__(".symver foo1, bar1@");
|
|
__asm__(".symver foo2, bar2@@");
|
|
EOF
|
|
|
|
$CC -B. -shared -o $t/b.so $t/a.o
|
|
|
|
readelf --dyn-syms $t/b.so | grep -q ' bar1'
|
|
readelf --dyn-syms $t/b.so | grep -q ' bar2'
|