23 lines
533 B
D
23 lines
533 B
D
|
#name: MIPS 32-bit ELF embedded-pic relocs #2-rev-0 (0x0004 backward edge case)
|
||
|
#as: -membedded-pic -mips3
|
||
|
#source: empic2-rev-tgt.s
|
||
|
#source: empic2-ref.s
|
||
|
#objdump: --prefix-addresses -tdr --show-raw-insn -mmips:4000
|
||
|
#ld: -Ttext 0x400000 -e 0x400000
|
||
|
|
||
|
.*: file format elf.*mips.*
|
||
|
|
||
|
#...
|
||
|
0+408000 g F .text [0-9a-f]+ foo
|
||
|
#...
|
||
|
0+407ffc g F .text [0-9a-f]+ bar
|
||
|
#...
|
||
|
|
||
|
Disassembly of section \.text:
|
||
|
...
|
||
|
0+407ffc <[^>]*> 00000000 nop
|
||
|
0+408000 <[^>]*> 3c020000 lui v0,0x0
|
||
|
0+408004 <[^>]*> 6442fffc daddiu v0,v0,-4
|
||
|
...
|
||
|
#pass
|