Add ld relax support and testsuits. ld/ChangeLog: * emultempl/loongarchelf.em: Regenerated. * testsuite/ld-elf/compressed1d.d: Xfail loongarch*-*. * testsuite/ld-elf/pr26936.d: Likewise. * testsuite/ld-loongarch-elf/disas-jirl.d: Regenerated. * testsuite/ld-loongarch-elf/disas-jirl-32.d: Regenerated. * testsuite/ld-loongarch-elf/jmp_op.d: Likewise. * testsuite/ld-loongarch-elf/macro_op.d: Likewise. * testsuite/ld-loongarch-elf/macro_op_32.d: Likewise. * testsuite/ld-loongarch-elf/relax-align.dd: New test. * testsuite/ld-loongarch-elf/relax-align.s: New test. * testsuite/ld-loongarch-elf/relax.exp: New test. * testsuite/ld-loongarch-elf/relax.s: New test. * testsuite/ld-loongarch-elf/uleb128.dd: New test. * testsuite/ld-loongarch-elf/uleb128.s: New test.
18 lines
447 B
Makefile
18 lines
447 B
Makefile
#as:
|
|
#objdump: -dr
|
|
#skip: loongarch64-*-*
|
|
|
|
.*:[ ]+file format .*
|
|
|
|
|
|
Disassembly of section .text:
|
|
|
|
00000000.* <_start>:
|
|
[ ]+0:[ ]+1a000014[ ]+pcalau12i[ ]+\$t8,[ ]+0
|
|
[ ]+0:[ ]+R_LARCH_PCALA_HI20[ ]+_start
|
|
[ ]+0:[ ]+R_LARCH_RELAX[ ]+\*ABS\*
|
|
[ ]+4:[ ]+02800294[ ]+addi.w[ ]+\$t8,[ ]+\$t8,[ ]+0
|
|
[ ]+4:[ ]+R_LARCH_PCALA_LO12[ ]+_start
|
|
[ ]+4:[ ]+R_LARCH_RELAX[ ]+\*ABS\*
|
|
[ ]+8:[ ]+4c000281[ ]+jirl[ ]+\$ra,[ ]+\$t8,[ ]+0
|