50 lines
1.8 KiB
Makefile
50 lines
1.8 KiB
Makefile
#source: elfv2.s
|
|
#as: -a64
|
|
#ld: -melf64ppc --defsym f2=0x1234 --defsym f3=0x10008888 --defsym f4=0x1200000 --defsym _start=f1
|
|
#objdump: -dr
|
|
|
|
.*
|
|
|
|
Disassembly of section \.text:
|
|
|
|
0+100000c0 <.*\.plt_branch\.f4>:
|
|
.*: (3d 82 ff ff|ff ff 82 3d) addis r12,r2,-1
|
|
.*: (e9 8c 7f 58|58 7f 8c e9) ld r12,32600\(r12\)
|
|
.*: (7d 89 03 a6|a6 03 89 7d) mtctr r12
|
|
.*: (4e 80 04 20|20 04 80 4e) bctr
|
|
|
|
0+100000d0 <.*\.plt_branch\.f2>:
|
|
.*: (3d 82 ff ff|ff ff 82 3d) addis r12,r2,-1
|
|
.*: (e9 8c 7f 60|60 7f 8c e9) ld r12,32608\(r12\)
|
|
.*: (7d 89 03 a6|a6 03 89 7d) mtctr r12
|
|
.*: (4e 80 04 20|20 04 80 4e) bctr
|
|
|
|
0+100000e0 <.*\.long_branch\.f5>:
|
|
.*: (f8 41 00 18|18 00 41 f8) std r2,24\(r1\)
|
|
.*: (48 00 00 6c|6c 00 00 48) b .* <f5>
|
|
\.\.\.
|
|
|
|
0+10000100 <(f1|_start)>:
|
|
.*: (3c 40 10 02|02 10 40 3c) lis r2,4098
|
|
.*: (38 42 82 00|00 82 42 38) addi r2,r2,-32256
|
|
.*: (7c 08 02 a6|a6 02 08 7c) mflr r0
|
|
.*: (f8 21 ff e1|e1 ff 21 f8) stdu r1,-32\(r1\)
|
|
.*: (f8 01 00 30|30 00 01 f8) std r0,48\(r1\)
|
|
.*: (4b ff ff f5|f5 ff ff 4b) bl .* <(f1|_start)\+0x8>
|
|
.*: (e8 62 80 08|08 80 62 e8) ld r3,-32760\(r2\)
|
|
.*: (4b .. .. ..|.. .. .. 4b) bl .*\.plt_branch\.f2>
|
|
.*: (60 00 00 00|00 00 00 60) nop
|
|
.*: (38 62 80 18|18 80 62 38) addi r3,r2,-32744
|
|
.*: (48 .. .. ..|.. .. .. 48) bl 10008888 <f3>
|
|
.*: (60 00 00 00|00 00 00 60) nop
|
|
.*: (4b .. .. ..|.. .. .. 4b) bl .*\.plt_branch\.f4>
|
|
.*: (60 00 00 00|00 00 00 60) nop
|
|
.*: (4b .. .. ..|.. .. .. 4b) bl .*\.long_branch\.f5>
|
|
.*: (e8 41 00 18|18 00 41 e8) ld r2,24\(r1\)
|
|
.*: (e8 01 00 30|30 00 01 e8) ld r0,48\(r1\)
|
|
.*: (38 21 00 20|20 00 21 38) addi r1,r1,32
|
|
.*: (7c 08 03 a6|a6 03 08 7c) mtlr r0
|
|
.*: (4e 80 00 20|20 00 80 4e) blr
|
|
|
|
0+10000150 <f5>:
|
|
.*: (4e 80 00 20|20 00 80 4e) blr
|