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

Revert "Enable IFUNC tests on RISC-V" to fix CI

This reverts commit 70b69b2698.
This commit is contained in:
Rui Ueyama 2022-09-14 18:24:39 +08:00
parent 34b63e7f92
commit 1b9dc06150
5 changed files with 21 additions and 3 deletions

View File

@ -12,7 +12,10 @@ echo -n "Testing $testname ... "
t=out/test/elf/$MACHINE/$testname
mkdir -p $t
# Skip if libc is musl because musl does not support GNU IFUNC
# IFUNC is not supported on RISC-V yet
[ $MACHINE = riscv64 -o $MACHINE = riscv32 ] && { echo skipped; exit; }
# Skip if libc is musl because musl does not support GNU FUNC
ldd --help 2>&1 | grep -q musl && { echo skipped; exit; }
cat <<EOF | $CC -fPIC -o $t/a.o -c -xc -

View File

@ -12,7 +12,11 @@ echo -n "Testing $testname ... "
t=out/test/elf/$MACHINE/$testname
mkdir -p $t
# Skip if libc is musl because musl does not support GNU IFUNC
# IFUNC is not supported on RISC-V yet
[ $MACHINE = riscv32 ] && { echo skipped; exit; }
[ $MACHINE = riscv64 ] && { echo skipped; exit; }
# Skip if libc is musl because musl does not support GNU FUNC
ldd --help 2>&1 | grep -q musl && { echo skipped; exit; }
cat <<EOF | $CC -o $t/a.o -c -xc -

View File

@ -12,7 +12,11 @@ echo -n "Testing $testname ... "
t=out/test/elf/$MACHINE/$testname
mkdir -p $t
# Skip if libc is musl because musl does not support GNU IFUNC
# IFUNC is not supported on RISC-V yet
[ $MACHINE = riscv32 ] && { echo skipped; exit; }
[ $MACHINE = riscv64 ] && { echo skipped; exit; }
# Skip if libc is musl because musl does not support GNU FUNC
ldd --help 2>&1 | grep -q musl && { echo skipped; exit; }
cat <<EOF | $CC -c -fPIC -o $t/a.o -xc -

View File

@ -23,6 +23,10 @@ ldd --help 2>&1 | grep -q musl && { echo skipped; exit; }
# We need to implement R_386_GOT32X relaxation to support PIE on i386
[ $MACHINE = i386 -o $MACHINE = i686 ] && { echo skipped; exit; }
# IFUNC is not supported on RISC-V yet
[ $MACHINE = riscv64 -o $MACHINE = riscv32 ] && { echo skipped; exit; }
[ $MACHINE = aarch64 ] && { echo skipped; exit; }
cat <<EOF | $CC -o $t/a.o -c -xc - -fPIC
#include <stdio.h>

View File

@ -15,6 +15,9 @@ mkdir -p $t
echo 'int main() {}' | cc -o /dev/null -xc - -static >& /dev/null || \
{ echo skipped; exit; }
# IFUNC is not supported on RISC-V yet
[ $MACHINE = riscv64 -o $MACHINE = riscv32 ] && { echo skipped; exit; }
# Skip if libc is musl because musl does not support GNU IFUNC
ldd --help 2>&1 | grep -q musl && { echo skipped; exit; }