]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
MIPS: Add tests for orphan REL HI16 relocation addend processing
authorMaciej W. Rozycki <macro@orcam.me.uk>
Wed, 14 Jan 2026 22:28:44 +0000 (22:28 +0000)
committerMaciej W. Rozycki <macro@orcam.me.uk>
Wed, 14 Jan 2026 22:28:44 +0000 (22:28 +0000)
commit42b413786de8e8e9ba2d8b1bf8319582efcfa613
tree3fc6d3849796dd79759b78784b62681d54d3b9f0
parentb710ca0876a4587b861146601067ed2ee795b0b1
MIPS: Add tests for orphan REL HI16 relocation addend processing

Add GAS and LD test cases for orphan REL HI16 relocation processing,
including verification of the addends produced as well as the warning
messages expected.

Due to the ordering used for the list of oustanding cached HI16 reloc
entries warnings for non-ELF links are issued in the reverse order
compared to one for ELF links.  This is not considered a defect as all
the required warnings are produced in both cases, however separate
warning lists are required and included here for ELF and srec output.
27 files changed:
gas/testsuite/gas/mips/micromips-hi16-orphan-addend.d [new file with mode: 0644]
gas/testsuite/gas/mips/mips-hi16-orphan-addend.l [new file with mode: 0644]
gas/testsuite/gas/mips/mips-hi16-orphan-addend.s [new file with mode: 0644]
gas/testsuite/gas/mips/mips.exp
gas/testsuite/gas/mips/mips16-hi16-orphan-addend.d [new file with mode: 0644]
gas/testsuite/gas/mips/pcrel-hi16-orphan-addend.d [new file with mode: 0644]
gas/testsuite/gas/mips/pcrel-hi16-orphan-addend.l [new file with mode: 0644]
gas/testsuite/gas/mips/pcrel-hi16-orphan-addend.s [new file with mode: 0644]
ld/testsuite/ld-mips-elf/micromips-hi16-orphan-addend-srec.d [new file with mode: 0644]
ld/testsuite/ld-mips-elf/micromips-hi16-orphan-addend-srec.l [new file with mode: 0644]
ld/testsuite/ld-mips-elf/micromips-hi16-orphan-addend.d [new file with mode: 0644]
ld/testsuite/ld-mips-elf/micromips-hi16-orphan-addend.l [new file with mode: 0644]
ld/testsuite/ld-mips-elf/mips-elf.exp
ld/testsuite/ld-mips-elf/mips-hi16-orphan-addend-srec.d [new file with mode: 0644]
ld/testsuite/ld-mips-elf/mips-hi16-orphan-addend-srec.l [new file with mode: 0644]
ld/testsuite/ld-mips-elf/mips-hi16-orphan-addend.d [new file with mode: 0644]
ld/testsuite/ld-mips-elf/mips-hi16-orphan-addend.l [new file with mode: 0644]
ld/testsuite/ld-mips-elf/mips-hi16-orphan-addend.ld [new file with mode: 0644]
ld/testsuite/ld-mips-elf/mips-hi16-orphan-addend.s [new file with mode: 0644]
ld/testsuite/ld-mips-elf/mips16-hi16-orphan-addend-srec.d [new file with mode: 0644]
ld/testsuite/ld-mips-elf/mips16-hi16-orphan-addend-srec.l [new file with mode: 0644]
ld/testsuite/ld-mips-elf/mips16-hi16-orphan-addend.d [new file with mode: 0644]
ld/testsuite/ld-mips-elf/mips16-hi16-orphan-addend.l [new file with mode: 0644]
ld/testsuite/ld-mips-elf/pcrel-hi16-orphan-addend-srec.d [new file with mode: 0644]
ld/testsuite/ld-mips-elf/pcrel-hi16-orphan-addend-srec.l [new file with mode: 0644]
ld/testsuite/ld-mips-elf/pcrel-hi16-orphan-addend.d [new file with mode: 0644]
ld/testsuite/ld-mips-elf/pcrel-hi16-orphan-addend.l [new file with mode: 0644]