mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
85e963f185
The sizes of compressed and uncompressed .debug_aranges are the same for the riscv big endian targets, but different for the little endian targets. The compress rule is fine and isn't broken by riscv, just the original compressed1d.d fails by accident. Ideally, we should fill the R_RISCV_ADD/SUB relocations when disabling relaxations in the assembler. But before that, Jim already had written an alternative test compressed1d-alt to relpace compressed1d.d for riscv, so we can only xfail the riscv little endian targets in the short-term. ld/ * testsuite/ld-elf/elf.exp (riscv_little_endian): Added. Return true if target is riscv little endian. Otherwise, return false. * testsuite/ld-elf/compressed1d.d: Only xfail the riscv little endian targets by [riscv_little_endian].
16 lines
537 B
Makefile
16 lines
537 B
Makefile
#source: compress1.s
|
|
#as: --compress-debug-sections=none
|
|
#ld: -r --compress-debug-sections=zlib-gnu
|
|
#readelf: -SW
|
|
#xfail: [uses_genelf]
|
|
#xfail: [riscv_little_endian]
|
|
# Not all ELF targets use the elf.em emulation...
|
|
# RISC-V has linker relaxations that delete code, so text label subtractions
|
|
# do not get resolved at assembly time, which results in a compressed section
|
|
# for little endian targets; but it is uncompressed for big endian targets.
|
|
|
|
#failif
|
|
#...
|
|
\[[ 0-9]+\] \.zdebug_aranges[ ]+(PROGBITS|MIPS_DWARF)[ 0-9a-z]+ .*
|
|
#...
|