mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
304f09d0d4
bfd/ * elfxx-mips.c (_bfd_mips_elf_check_relocs): Add NULL pointer checks. Search the RELA table for n64 relocations. ld/ * testsuite/ld-mips-elf/pic-reloc-5.d: New test. * testsuite/ld-mips-elf/pic-reloc-6.d: New test. * testsuite/ld-mips-elf/pic-reloc-7.d: New test. * testsuite/ld-mips-elf/pic-reloc-5.s: New test source. * testsuite/ld-mips-elf/pic-reloc-6.s: New test source. * testsuite/ld-mips-elf/pic-reloc-7.s: New test source. * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
11 lines
146 B
ArmAsm
11 lines
146 B
ArmAsm
.text
|
|
.globl foo
|
|
.ent foo
|
|
foo:
|
|
$LCL:
|
|
lui $2, %highest($LCL)
|
|
addiu $2, %higher($LCL)
|
|
lui $2, %highest(bar)
|
|
addiu $2, %higher(bar)
|
|
.end foo
|