26d97720ed
* config/tc-arm.c (parse_address_main): Handle -0 offsets. (encode_arm_addr_mode_2): Set default sign of zero here ... (encode_arm_addr_mode_3): ... and here. (encode_arm_cp_address): ... and here. (md_apply_fix): Use default sign of zero here. gas/testsuite/ * gas/arm/inst.d: Adjust for signed zero offsets. * gas/arm/ldst-offset0.d: New test. * gas/arm/ldst-offset0.s: New test. * gas/arm/offset-1.d: New test. * gas/arm/offset-1.s: New test. ld/testsuite/ Adjust tests for zero offset formatting. * ld-arm/cortex-a8-fix-bcc-plt.d: Adjust. * ld-arm/farcall-arm-arm-pic-veneer.d: Adjust. * ld-arm/farcall-arm-thumb.d: Adjust. * ld-arm/farcall-group-size2.d: Adjust. * ld-arm/farcall-group.d: Adjust. * ld-arm/farcall-mix.d: Adjust. * ld-arm/farcall-mix2.d: Adjust. * ld-arm/farcall-mixed-lib-v4t.d: Adjust. * ld-arm/farcall-mixed-lib.d: Adjust. * ld-arm/farcall-thumb-arm-blx-pic-veneer.d: Adjust. * ld-arm/farcall-thumb-arm-pic-veneer.d: Adjust. * ld-arm/farcall-thumb-thumb.d: Adjust. * ld-arm/ifunc-10.dd: Adjust. * ld-arm/ifunc-3.dd: Adjust. * ld-arm/ifunc-4.dd: Adjust. * ld-arm/ifunc-5.dd: Adjust. * ld-arm/ifunc-6.dd: Adjust. * ld-arm/ifunc-7.dd: Adjust. * ld-arm/ifunc-8.dd: Adjust. * ld-arm/jump-reloc-veneers-long.d: Adjust. * ld-arm/tls-longplt-lib.d: Adjust. * ld-arm/tls-thumb1.d: Adjust. opcodes/ * arm-dis.c (print_insn_coprocessor): Explicitly print #-0 as address offset. (print_arm_address): Likewise. Elide positive #0 appropriately. (print_insn_arm): Likewise.
91 lines
4.3 KiB
Text
91 lines
4.3 KiB
Text
|
|
.*
|
|
|
|
|
|
Disassembly of section \.iplt:
|
|
|
|
00009000 <\.iplt>:
|
|
#------------------------------------------------------------------------------
|
|
#------ f1's .iplt entry
|
|
#------------------------------------------------------------------------------
|
|
9000: e28fc600 add ip, pc, #0
|
|
9004: e28cca08 add ip, ip, #32768 ; 0x8000
|
|
9008: e5bcf004 ldr pc, \[ip, #4\]!
|
|
#------------------------------------------------------------------------------
|
|
#------ f3's .iplt entry
|
|
#------------------------------------------------------------------------------
|
|
900c: e28fc600 add ip, pc, #0
|
|
9010: e28cca07 add ip, ip, #28672 ; 0x7000
|
|
9014: e5bcfffc ldr pc, \[ip, #4092\]! ; 0xffc
|
|
#------------------------------------------------------------------------------
|
|
#------ f2's .iplt entry
|
|
#------------------------------------------------------------------------------
|
|
9018: e28fc600 add ip, pc, #0
|
|
901c: e28cca07 add ip, ip, #28672 ; 0x7000
|
|
9020: e5bcfff4 ldr pc, \[ip, #4084\]! ; 0xff4
|
|
|
|
Disassembly of section \.text:
|
|
|
|
0000a000 <f1>:
|
|
a000: e1a0f00e mov pc, lr
|
|
|
|
0000a004 <f2>:
|
|
a004: e1a0f00e mov pc, lr
|
|
|
|
0000a008 <f3>:
|
|
a008: e1a0f00e mov pc, lr
|
|
|
|
0000a00c <_start>:
|
|
a00c: eb0017fb bl 10000 <foo>
|
|
a010: e59f4000 ldr r4, \[pc\] ; a018 <_start\+0xc>
|
|
a014: e59f4000 ldr r4, \[pc\] ; a01c <_start\+0x10>
|
|
#------------------------------------------------------------------------------
|
|
#------ .got offset for foo
|
|
#------------------------------------------------------------------------------
|
|
a018: 0000001c \.word 0x0000001c
|
|
#------------------------------------------------------------------------------
|
|
#------ PC-relative offset of .got entry for foo
|
|
#------------------------------------------------------------------------------
|
|
a01c: 00006ffc \.word 0x00006ffc
|
|
#------------------------------------------------------------------------------
|
|
#------ f1's .iplt entry
|
|
#------------------------------------------------------------------------------
|
|
a020: ebfffbf6 bl 9000 <__irel_end\+0xfe8>
|
|
a024: e59f4000 ldr r4, \[pc\] ; a02c <_start\+0x20>
|
|
a028: e59f4000 ldr r4, \[pc\] ; a030 <_start\+0x24>
|
|
#------------------------------------------------------------------------------
|
|
#------ GP-relative offset of f1's .igot.plt entry
|
|
#------------------------------------------------------------------------------
|
|
a02c: 0000000c \.word 0x0000000c
|
|
#------------------------------------------------------------------------------
|
|
#------ PC-relative offset of f1's .igot.plt entry
|
|
#------------------------------------------------------------------------------
|
|
a030: 00006fdc \.word 0x00006fdc
|
|
#------------------------------------------------------------------------------
|
|
#------ f2's .iplt entry
|
|
#------------------------------------------------------------------------------
|
|
a034: ebfffbf7 bl 9018 <__irel_end\+0x1000>
|
|
a038: e59f4000 ldr r4, \[pc\] ; a040 <_start\+0x34>
|
|
a03c: e59f4000 ldr r4, \[pc\] ; a044 <_start\+0x38>
|
|
#------------------------------------------------------------------------------
|
|
#------ GP-relative offset of f2's .igot.plt entry
|
|
#------------------------------------------------------------------------------
|
|
a040: 00000014 \.word 0x00000014
|
|
#------------------------------------------------------------------------------
|
|
#------ PC-relative offset of f2's .igot.plt entry
|
|
#------------------------------------------------------------------------------
|
|
a044: 00006fd0 \.word 0x00006fd0
|
|
#------------------------------------------------------------------------------
|
|
#------ f3's .iplt entry
|
|
#------------------------------------------------------------------------------
|
|
a048: ebfffbef bl 900c <__irel_end\+0xff4>
|
|
a04c: e59f4000 ldr r4, \[pc\] ; a054 <_start\+0x48>
|
|
a050: e59f4000 ldr r4, \[pc\] ; a058 <_start\+0x4c>
|
|
#------------------------------------------------------------------------------
|
|
#------ GP-relative offset of f3's .igot.plt entry
|
|
#------------------------------------------------------------------------------
|
|
a054: 00000010 \.word 0x00000010
|
|
#------------------------------------------------------------------------------
|
|
#------ PC-relative offset of f3's .igot.plt entry
|
|
#------------------------------------------------------------------------------
|
|
a058: 00006fb8 \.word 0x00006fb8
|