aarch64 fixes reported by testsuite failures
cover aarch64 fixes reported by testsuite failures
aarch64 fixes reported by testsuite failures
To work this we need to copy all required system libs in testsuite directory, and at our set-up we copied below libs:-
1. ld-linux-aarch64.so.1
2. libc.so.6
3. libgcc_s.so.1
4. libm.so.6
5. libstdc++.so.6
root# make check
make check-TESTS
make[1]: Entering directory 'prelink-cross/testsuite' make[2]: Entering directory 'prelink-cross/testsuite'
SKIP: movelibs.sh
PASS: reloc1.sh
PASS: reloc2.sh
PASS: reloc3.sh
SKIP: reloc4.sh
SKIP: reloc5.sh
PASS: reloc6.sh
PASS: reloc7.sh
PASS: reloc8.sh
PASS: reloc9.sh
PASS: reloc10.sh
PASS: reloc11.sh
PASS: shuffle1.sh
PASS: shuffle2.sh
PASS: shuffle3.sh
PASS: shuffle4.sh
PASS: shuffle5.sh
PASS: shuffle6.sh
PASS: shuffle7.sh
PASS: shuffle8.sh
PASS: shuffle9.sh
PASS: undo1.sh
PASS: layout1.sh
PASS: layout2.sh
FAIL: unprel1.sh
PASS: tls1.sh
PASS: tls2.sh
PASS: tls3.sh
PASS: tls4.sh
PASS: tls5.sh
PASS: tls6.sh
PASS: tls7.sh
PASS: cxx1.sh
PASS: cxx2.sh
PASS: cxx3.sh
FAIL: quick1.sh
FAIL: quick2.sh
FAIL: quick3.sh
PASS: cycle1.sh
PASS: cycle2.sh
FAIL: deps1.sh
FAIL: deps2.sh
SKIP: ifunc1.sh
SKIP: ifunc2.sh
SKIP: ifunc3.sh
PASS: undosyslibs.sh
FAIL: preload1.sh
============================================================================
Testsuite summary for
============================================================================
# TOTAL: 47
# PASS: 34
# SKIP: 6
# XFAIL: 0
# FAIL: 7
# XPASS: 0
# ERROR: 0
Maninder Singh (2):
testsuite: fixes in testsuite according to aarch64 src/arch-aarch64.c:testsuite failure fixes in aarch64
src/arch-aarch64.c | 7 ++++--- testsuite/reloc2.sh | 2 +- testsuite/reloc8.sh | 2 +- testsuite/reloc9.sh | 2 +- testsuite/tls3.sh | 2 +- 5 files changed, 8 insertions(+), 7 deletions(-)
PATCH 1/2 testsuite: fixes in testsuite according to aarch64
This Patch fixes testsuite by adding support of aarch64
--- testsuite/reloc2.sh | 2 +- testsuite/reloc8.sh | 2 +- testsuite/reloc9.sh | 2 +- testsuite/tls3.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
testsuite/reloc2.sh +1 -1
@@ -2,7 +2,7 @@ . `dirname $0`/functions.sh SHFLAGS= case "`$RUN uname -m`" in - ia64|ppc*|x86_64|mips*|arm*) SHFLAGS=-fpic;; # Does not support non-pic shared libs + ia64|ppc*|x86_64|mips*|arm*|aarch64) SHFLAGS=-fpic;; # Does not support non-pic shared libs s390*) if file reloc1lib1.so | grep -q 64-bit; then SHFLAGS=-fpic; fi;; esac # Disable this test under SELinux if textrel
testsuite/reloc8.sh +1 -1
@@ -13,7 +13,7 @@ rm -f reloc8 reloc8lib*.so reloc8.log rm -f prelink.cache NOCOPYRELOC=-Wl,-z,nocopyreloc case "`$RUN uname -m`" in - x86_64|s390*|sparc*) if file reloc1lib1.so | grep -q 64-bit; then NOCOPYRELOC=; fi;; + x86_64|s390*|sparc*|aarch64) if file reloc1lib1.so | grep -q 64-bit; then NOCOPYRELOC=; fi;; esac $RUN_HOST $CC -shared -O2 -Wl,-z,nocombreloc -fpic -o reloc8lib1.so $srcdir/reloc3lib1.c $RUN_HOST $CC -shared -O2 -Wl,-z,nocombreloc -fpic -o reloc8lib2.so $srcdir/reloc1lib2.c reloc8lib1.so
testsuite/reloc9.sh +1 -1
@@ -13,7 +13,7 @@ rm -f reloc9 reloc9lib*.so reloc9.log rm -f prelink.cache NOCOPYRELOC=-Wl,-z,nocopyreloc case "`$RUN uname -m`" in - x86_64|s390*|sparc*) if file reloc1lib1.so | grep -q 64-bit; then NOCOPYRELOC=; fi;; + x86_64|s390*|sparc*|aarch64) if file reloc1lib1.so | grep -q 64-bit; then NOCOPYRELOC=; fi;; esac $RUN_HOST $CC -shared -O2 -Wl,-z,nocombreloc -fpic -o reloc9lib1.so $srcdir/reloc3lib1.c $RUN_HOST $CC -shared -O2 -Wl,-z,nocombreloc -fpic -o reloc9lib2.so $srcdir/reloc1lib2.c reloc9lib1.so
testsuite/tls3.sh +1 -1
@@ -9,7 +9,7 @@ if [ "x$CROSS" = "x" ]; then fi SHFLAGS= case "`$RUN uname -m`" in - ia64|ppc*|x86_64|alpha*|s390*|mips*|arm*) SHFLAGS=-fpic;; # Does not support non-pic shared libs + ia64|ppc*|x86_64|alpha*|s390*|mips*|arm*|aarch64) SHFLAGS=-fpic;; # Does not support non-pic shared libs esac # Disable this test under SELinux if textrel if test -z "$SHFLAGS" -a -x /usr/sbin/getenforce; then
Signature · 1 line
1.7.1
PATCH 2/2 src/arch-aarch64.c:testsuite failure fixes in aarch64
In reply to Maninder SinghThis patch fixes testsuite failure in aarch64 prelink undo section.
--- src/arch-aarch64.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)
src/arch-aarch64.c +4 -3
@@ -470,7 +470,9 @@ aarch64_undo_prelink_rela (DSO *dso, GElf_Rela *rela, GElf_Addr relaaddr)switch (GELF_R_TYPE (rela->r_info)) {case R_AARCH64_NONE : +break ;case R_AARCH64_RELATIVE : +write_ne64 (dso, rela->r_offset,0 );break ;case R_AARCH64_JUMP_SLOT : sec =addr_to_sec (dso, rela->r_offset);
@@ -487,9 +489,7 @@ aarch64_undo_prelink_rela (DSO *dso, GElf_Rela *rela, GElf_Addr relaaddr)assert (rela->r_offset >= dso->shdr[sec].sh_addr +24 );assert (((rela->r_offset - dso->shdr[sec].sh_addr) &7 ) ==0 ); -write_neclass (dso, rela->r_offset, -2 * (rela->r_offset - dso->shdr[sec].sh_addr -24 ) - + data); +write_neclass (dso, rela->r_offset, data); }break ;case R_AARCH64_GLOB_DAT :
@@ -501,6 +501,7 @@ aarch64_undo_prelink_rela (DSO *dso, GElf_Rela *rela, GElf_Addr relaaddr)write_ne64 (dso, rela->r_offset,0 );break ;case R_AARCH64_TLS_TPREL : +write_ne64 (dso, rela->r_offset,0 );break ;case R_AARCH64_TLSDESC :write_ne64 (dso, rela->r_offset,0 );
Signature · 1 line
1.7.1
Thank you. I'm going to try to get this and the previous set of pending patches merged in the next day or so.
I'll let everyone know when the next test version is ready.
--Mark
Quoted 84 lines · Maninder Singh
aarch64 fixes reported by testsuite failures
To work this we need to copy all required system libs in testsuite directory, and at our set-up we copied below libs:-
1. ld-linux-aarch64.so.1
2. libc.so.6
3. libgcc_s.so.1
4. libm.so.6
5. libstdc++.so.6root# make check
make check-TESTS
make[1]: Entering directory 'prelink-cross/testsuite' make[2]: Entering directory 'prelink-cross/testsuite'
SKIP:movelibs.sh
PASS:reloc1.sh
PASS:reloc2.sh
PASS:reloc3.sh
SKIP:reloc4.sh
SKIP:reloc5.sh
PASS:reloc6.sh
PASS:reloc7.sh
PASS:reloc8.sh
PASS:reloc9.sh
PASS:reloc10.sh
PASS:reloc11.sh
PASS:shuffle1.sh
PASS:shuffle2.sh
PASS:shuffle3.sh
PASS:shuffle4.sh
PASS:shuffle5.sh
PASS:shuffle6.sh
PASS:shuffle7.sh
PASS:shuffle8.sh
PASS:shuffle9.sh
PASS:undo1.sh
PASS:layout1.sh
PASS:layout2.sh
FAIL:unprel1.sh
PASS:tls1.sh
PASS:tls2.sh
PASS:tls3.sh
PASS:tls4.sh
PASS:tls5.sh
PASS:tls6.sh
PASS:tls7.sh
PASS:cxx1.sh
PASS:cxx2.sh
PASS:cxx3.sh
FAIL:quick1.sh
FAIL:quick2.sh
FAIL:quick3.sh
PASS:cycle1.sh
PASS:cycle2.sh
FAIL:deps1.sh
FAIL:deps2.sh
SKIP:ifunc1.sh
SKIP:ifunc2.sh
SKIP:ifunc3.sh
PASS:undosyslibs.sh
FAIL:preload1.sh
============================================================================
Testsuite summary for
============================================================================
# TOTAL: 47
# PASS: 34
# SKIP: 6
# XFAIL: 0
# FAIL: 7
# XPASS: 0
# ERROR: 0Maninder Singh (2):
testsuite: fixes in testsuite according to aarch64 src/arch-aarch64.c:testsuite failure fixes in aarch64src/arch-aarch64.c | 7 ++++--- testsuite/reloc2.sh | 2 +- testsuite/reloc8.sh | 2 +- testsuite/reloc9.sh | 2 +- testsuite/tls3.sh | 2 +- 5 files changed, 8 insertions(+), 7 deletions(-)