mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
a657e7c198
* ld-mips-elf/empic1-ln.d: New file to test basic linking of R_MIPS_GNU_REL_HI16 and R_MIPS_GNU_REL_LO16 relocations. * ld-mips-elf/empic1-lp.d: Likewise. * ld-mips-elf/empic1-mn.d: Likewise. * ld-mips-elf/empic1-mp.d: Likewise. * ld-mips-elf/empic1-sn.d: Likewise. * ld-mips-elf/empic1-sp.d: Likewise. * ld-mips-elf/empic1-ref.s: Likewise. * ld-mips-elf/empic1-space.s: Likewise. * ld-mips-elf/empic1-tgt.s: Likewise. * ld-mips-elf/empic2-fwd-0.d: New file to test R_MIPS_GNU_REL_HI16 and R_MIPS_GNU_REL_LO16 relocation edge cases. * ld-mips-elf/empic2-fwd-1.d: Likewise. * ld-mips-elf/empic2-rev-0.d: Likewise. * ld-mips-elf/empic2-rev-1.d: Likewise. * ld-mips-elf/empic2-ref.s: Likewise. * ld-mips-elf/empic2-space.s: Likewise. * ld-mips-elf/empic2-fwd-tgt.s: Likewise. * ld-mips-elf/empic2-rev-tgt.s: Likewise. * ld-mips-elf/mips-elf.exp: New file to run MIPS 32-bit ELF tests (including those above).
28 lines
591 B
Makefile
28 lines
591 B
Makefile
#name: MIPS 32-bit ELF embedded-pic relocs #1-ln (large negative)
|
|
#as: -membedded-pic -mips3
|
|
#source: empic1-tgt.s
|
|
#source: empic1-space.s
|
|
#source: empic1-space.s
|
|
#source: empic1-ref.s
|
|
#objdump: --prefix-addresses -tdr --show-raw-insn -mmips:4000
|
|
#ld: -Ttext 0x400000 -e 0x400000
|
|
|
|
.*: file format elf.*mips.*
|
|
|
|
SYMBOL TABLE:
|
|
#...
|
|
0+410020 g F .text [0-9a-f]+ foo
|
|
#...
|
|
0+400000 g F .text [0-9a-f]+ bar
|
|
#...
|
|
|
|
Disassembly of section \.text:
|
|
...
|
|
...
|
|
...
|
|
0+410020 <[^>]*> 00000000 nop
|
|
0+410024 <[^>]*> 3c02ffff lui v0,0xffff
|
|
0+410028 <[^>]*> 6442ffe0 daddiu v0,v0,-32
|
|
...
|
|
#pass
|