mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-24 12:35:55 +08:00
2bd766d624
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.
22 lines
298 B
ArmAsm
22 lines
298 B
ArmAsm
# From gas/all/relax.s, test ld process add_uleb128/sub_uleb128 reloc pair.
|
|
.data
|
|
.byte 1, 2, 3
|
|
.uleb128 L2 - L1
|
|
L1:
|
|
.space 128 - 2
|
|
.byte 4
|
|
.p2align 1, 0xff
|
|
L2:
|
|
.byte 5
|
|
|
|
.p2align 2
|
|
.byte 6, 7
|
|
.uleb128 L4 - L3
|
|
L3:
|
|
.space 128*128 - 2
|
|
.byte 8
|
|
.p2align 2, 0xff
|
|
L4:
|
|
.byte 9
|
|
.p2align 4, 9
|