From: H.J. Lu Date: Mon, 14 May 2012 02:40:00 +0000 (+0000) Subject: Print addend as signed in objdump X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=343dbc36ffae;p=binutils-gdb.git Print addend as signed in objdump binutils/ * objdump.c (disassemble_bytes): Print addend as signed. (dump_reloc_set): Likewise. gas/testsuite/ * gas/all/fwdexp.d: Expect addend as signed. * gas/alpha/elf-reloc-1.d: Likewise. * gas/i386/mixed-mode-reloc64.d: Likewise. * gas/i386/reloc64.d: Likewise. * gas/i386/ilp32/mixed-mode-reloc64.d: Expect addend as signed. * gas/i386/ilp32/reloc64.d: Likewise. * gas/ia64/pcrel.d: Likewise. * gas/mips/branch-misc-2-64.d: Likewise. * gas/mips/branch-misc-2pic-64.d: Likewise. * gas/mips/branch-misc-4-64.d: Likewise. * gas/mips/ldstla-n64-sym32.d: Likewise. * gas/mips/micromips@branch-misc-2-64.d: Likewise. * gas/mips/micromips@branch-misc-2pic-64.d: Likewise. * gas/mips/micromips@branch-misc-4-64.d: Likewise. * gas/mips/mips16-hilo-n32.d: Likewise. * gas/ppc/astest.d: Likewise. * gas/ppc/astest2.d: Likewise. * gas/ppc/astest2_64.d: Likewise. * gas/ppc/astest64.d: Likewise. * gas/ppc/test1elf32.d: Likewise. * gas/ppc/test1elf64.d: Likewise. * gas/sparc/reloc64.d: Likewise. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 3d2e06632ca..7072d1ec4ea 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2012-05-13 H.J. Lu + + * objdump.c (disassemble_bytes): Print addend as signed. + (dump_reloc_set): Likewise. + 2012-05-04 Sterling Augustine Cary Coutant diff --git a/binutils/objdump.c b/binutils/objdump.c index 0cad73b32cf..b22bf8bde62 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -1840,8 +1840,15 @@ disassemble_bytes (struct disassemble_info * inf, if (q->addend) { - printf ("+0x"); - objdump_print_value (q->addend, inf, TRUE); + bfd_signed_vma addend = q->addend; + if (addend < 0) + { + printf ("-0x"); + addend = -addend; + } + else + printf ("+0x"); + objdump_print_value (addend, inf, TRUE); } printf ("\n"); @@ -3017,8 +3024,15 @@ dump_reloc_set (bfd *abfd, asection *sec, arelent **relpp, long relcount) if (q->addend) { - printf ("+0x"); - bfd_printf_vma (abfd, q->addend); + bfd_signed_vma addend = q->addend; + if (addend < 0) + { + printf ("-0x"); + addend = -addend; + } + else + printf ("+0x"); + bfd_printf_vma (abfd, addend); } if (addend2) { diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index f555213fe99..1991e8570c9 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,28 @@ +2012-05-13 H.J. Lu + + * gas/all/fwdexp.d: Expect addend as signed. + * gas/alpha/elf-reloc-1.d: Likewise. + * gas/i386/mixed-mode-reloc64.d: Likewise. + * gas/i386/reloc64.d: Likewise. + * gas/i386/ilp32/mixed-mode-reloc64.d: Expect addend as signed. + * gas/i386/ilp32/reloc64.d: Likewise. + * gas/ia64/pcrel.d: Likewise. + * gas/mips/branch-misc-2-64.d: Likewise. + * gas/mips/branch-misc-2pic-64.d: Likewise. + * gas/mips/branch-misc-4-64.d: Likewise. + * gas/mips/ldstla-n64-sym32.d: Likewise. + * gas/mips/micromips@branch-misc-2-64.d: Likewise. + * gas/mips/micromips@branch-misc-2pic-64.d: Likewise. + * gas/mips/micromips@branch-misc-4-64.d: Likewise. + * gas/mips/mips16-hilo-n32.d: Likewise. + * gas/ppc/astest.d: Likewise. + * gas/ppc/astest2.d: Likewise. + * gas/ppc/astest2_64.d: Likewise. + * gas/ppc/astest64.d: Likewise. + * gas/ppc/test1elf32.d: Likewise. + * gas/ppc/test1elf64.d: Likewise. + * gas/sparc/reloc64.d: Likewise. + 2012-05-12 H.J. Lu * gas/mips/elf-rel10.d: Updated. diff --git a/gas/testsuite/gas/all/fwdexp.d b/gas/testsuite/gas/all/fwdexp.d index 222dab2c494..5c16ea95571 100644 --- a/gas/testsuite/gas/all/fwdexp.d +++ b/gas/testsuite/gas/all/fwdexp.d @@ -5,7 +5,7 @@ RELOCATION RECORDS FOR .* OFFSET +TYPE +VALUE -0+ .*(\.data|i)(|\+0xf+e|\+0xf+c|\+0xf+8) +0+ .*(\.data|i)(|\+0xf+e|\+0xf+c|\+0xf+8|-0x0*2|-0x0*4|-0x0*8) Contents of section .* 0+ (0+|feff|fffe|fcffffff|fffffffc|f8ffffff|f8ffffff ffffffff|ffffffff fffffff8) .* diff --git a/gas/testsuite/gas/alpha/elf-reloc-1.d b/gas/testsuite/gas/alpha/elf-reloc-1.d index 3985975e765..69a16b72d74 100644 --- a/gas/testsuite/gas/alpha/elf-reloc-1.d +++ b/gas/testsuite/gas/alpha/elf-reloc-1.d @@ -16,6 +16,6 @@ OFFSET TYPE VALUE 0*000001c GPRELHIGH d 0*0000020 GPRELLOW e 0*0000024 GPDISP \.text\+0x0*0000008 -0*0000030 GPDISP \.text\+0xf*ffffff8 +0*0000030 GPDISP \.text-0x0*0000008 diff --git a/gas/testsuite/gas/i386/ilp32/mixed-mode-reloc64.d b/gas/testsuite/gas/i386/ilp32/mixed-mode-reloc64.d index c54b7d3adf1..a48c5028d94 100644 --- a/gas/testsuite/gas/i386/ilp32/mixed-mode-reloc64.d +++ b/gas/testsuite/gas/i386/ilp32/mixed-mode-reloc64.d @@ -7,8 +7,8 @@ RELOCATION RECORDS FOR \[.text\]: OFFSET[ ]+TYPE[ ]+VALUE[ ]* [0-9a-f]+[ ]+R_X86_64_GOT32[ ]+xtrn[ ]* -[0-9a-f]+[ ]+R_X86_64_PLT32[ ]+xtrn\+0xf+c[ ]* +[0-9a-f]+[ ]+R_X86_64_PLT32[ ]+xtrn-0x0*4[ ]* [0-9a-f]+[ ]+R_X86_64_GOT32[ ]+xtrn[ ]* -[0-9a-f]+[ ]+R_X86_64_PLT32[ ]+xtrn\+0xf+c[ ]* +[0-9a-f]+[ ]+R_X86_64_PLT32[ ]+xtrn-0x0*4[ ]* [0-9a-f]+[ ]+R_X86_64_GOT32[ ]+xtrn[ ]* -[0-9a-f]+[ ]+R_X86_64_PLT32[ ]+xtrn\+0xf+c[ ]* +[0-9a-f]+[ ]+R_X86_64_PLT32[ ]+xtrn-0x0*4[ ]* diff --git a/gas/testsuite/gas/i386/ilp32/reloc64.d b/gas/testsuite/gas/i386/ilp32/reloc64.d index c2fd292e3ce..5d3df9a19bf 100644 --- a/gas/testsuite/gas/i386/ilp32/reloc64.d +++ b/gas/testsuite/gas/i386/ilp32/reloc64.d @@ -14,10 +14,10 @@ Disassembly of section \.text: .*[ ]+R_X86_64_PC32[ ]+xtrn\+0x0*2 .*[ ]+R_X86_64_PC16[ ]+xtrn\+0x0*2 .*[ ]+R_X86_64_PC8[ ]+xtrn\+0x0*1 -.*[ ]+R_X86_64_PC32[ ]+xtrn\+0xf+c -.*[ ]+R_X86_64_PC32[ ]+xtrn\+0xf+c -.*[ ]+R_X86_64_PC32[ ]+xtrn\+0xf+c -.*[ ]+R_X86_64_PC8[ ]+xtrn\+0xf+f +.*[ ]+R_X86_64_PC32[ ]+xtrn-0x0*4 +.*[ ]+R_X86_64_PC32[ ]+xtrn-0x0*4 +.*[ ]+R_X86_64_PC32[ ]+xtrn-0x0*4 +.*[ ]+R_X86_64_PC8[ ]+xtrn-0x0*1 .*[ ]+R_X86_64_GOT32[ ]+xtrn .*[ ]+R_X86_64_GOT32[ ]+xtrn .*[ ]+R_X86_64_GOT32[ ]+xtrn @@ -26,31 +26,31 @@ Disassembly of section \.text: .*[ ]+R_X86_64_GOTPCREL[ ]+xtrn .*[ ]+R_X86_64_GOTPCREL[ ]+xtrn .*[ ]+R_X86_64_GOTPCREL[ ]+xtrn -.*[ ]+R_X86_64_GOTPCREL[ ]+xtrn\+0xf+c +.*[ ]+R_X86_64_GOTPCREL[ ]+xtrn-0x0*4 .*[ ]+R_X86_64_GOTPC32[ ]+_GLOBAL_OFFSET_TABLE_\+0x0*2 -.*[ ]+R_X86_64_GOTPC32[ ]+_GLOBAL_OFFSET_TABLE_\+0xf+c -.*[ ]+R_X86_64_GOTPC32[ ]+_GLOBAL_OFFSET_TABLE_\+0xf+c +.*[ ]+R_X86_64_GOTPC32[ ]+_GLOBAL_OFFSET_TABLE_-0x0*4 +.*[ ]+R_X86_64_GOTPC32[ ]+_GLOBAL_OFFSET_TABLE_-0x0*4 .*[ ]+R_X86_64_GOTPC32[ ]+_GLOBAL_OFFSET_TABLE_\+0x0*2 .*[ ]+R_X86_64_PLT32[ ]+xtrn .*[ ]+R_X86_64_PLT32[ ]+xtrn .*[ ]+R_X86_64_PLT32[ ]+xtrn .*[ ]+R_X86_64_PLT32[ ]+xtrn -.*[ ]+R_X86_64_PLT32[ ]+xtrn\+0xf+c +.*[ ]+R_X86_64_PLT32[ ]+xtrn-0x0*4 .*[ ]+R_X86_64_TLSGD[ ]+xtrn .*[ ]+R_X86_64_TLSGD[ ]+xtrn .*[ ]+R_X86_64_TLSGD[ ]+xtrn .*[ ]+R_X86_64_TLSGD[ ]+xtrn -.*[ ]+R_X86_64_TLSGD[ ]+xtrn\+0xf+c +.*[ ]+R_X86_64_TLSGD[ ]+xtrn-0x0*4 .*[ ]+R_X86_64_GOTTPOFF[ ]+xtrn .*[ ]+R_X86_64_GOTTPOFF[ ]+xtrn .*[ ]+R_X86_64_GOTTPOFF[ ]+xtrn .*[ ]+R_X86_64_GOTTPOFF[ ]+xtrn -.*[ ]+R_X86_64_GOTTPOFF[ ]+xtrn\+0xf+c +.*[ ]+R_X86_64_GOTTPOFF[ ]+xtrn-0x0*4 .*[ ]+R_X86_64_TLSLD[ ]+xtrn .*[ ]+R_X86_64_TLSLD[ ]+xtrn .*[ ]+R_X86_64_TLSLD[ ]+xtrn .*[ ]+R_X86_64_TLSLD[ ]+xtrn -.*[ ]+R_X86_64_TLSLD[ ]+xtrn\+0xf+c +.*[ ]+R_X86_64_TLSLD[ ]+xtrn-0x0*4 .*[ ]+R_X86_64_DTPOFF32[ ]+xtrn .*[ ]+R_X86_64_DTPOFF32[ ]+xtrn .*[ ]+R_X86_64_DTPOFF32[ ]+xtrn @@ -93,4 +93,4 @@ Disassembly of section \.data: .*[ ]+R_X86_64_PC8[ ]+xtrn .*[ ]+R_X86_64_64[ ]+xtrn .*[ ]+R_X86_64_64[ ]+xtrn\+0x7fffffff -.*[ ]+R_X86_64_64[ ]+xtrn\+0x80000000 +.*[ ]+R_X86_64_64[ ]+xtrn\-0x80000000 diff --git a/gas/testsuite/gas/i386/mixed-mode-reloc64.d b/gas/testsuite/gas/i386/mixed-mode-reloc64.d index dc50e43576b..9b82cb59490 100644 --- a/gas/testsuite/gas/i386/mixed-mode-reloc64.d +++ b/gas/testsuite/gas/i386/mixed-mode-reloc64.d @@ -7,8 +7,8 @@ RELOCATION RECORDS FOR \[.text\]: OFFSET[ ]+TYPE[ ]+VALUE[ ]* [0-9a-f]+[ ]+R_X86_64_GOT32[ ]+xtrn[ ]* -[0-9a-f]+[ ]+R_X86_64_PLT32[ ]+xtrn\+0xf+c[ ]* +[0-9a-f]+[ ]+R_X86_64_PLT32[ ]+xtrn-0x0*4[ ]* [0-9a-f]+[ ]+R_X86_64_GOT32[ ]+xtrn[ ]* -[0-9a-f]+[ ]+R_X86_64_PLT32[ ]+xtrn\+0xf+c[ ]* +[0-9a-f]+[ ]+R_X86_64_PLT32[ ]+xtrn-0x0*4[ ]* [0-9a-f]+[ ]+R_X86_64_GOT32[ ]+xtrn[ ]* -[0-9a-f]+[ ]+R_X86_64_PLT32[ ]+xtrn\+0xf+c[ ]* +[0-9a-f]+[ ]+R_X86_64_PLT32[ ]+xtrn-0x0*4[ ]* diff --git a/gas/testsuite/gas/i386/reloc64.d b/gas/testsuite/gas/i386/reloc64.d index 5c14019d4eb..b4780d4a255 100644 --- a/gas/testsuite/gas/i386/reloc64.d +++ b/gas/testsuite/gas/i386/reloc64.d @@ -16,33 +16,33 @@ Disassembly of section \.text: .*[ ]+R_X86_64_PC32[ ]+xtrn\+0x0*2 .*[ ]+R_X86_64_PC16[ ]+xtrn\+0x0*2 .*[ ]+R_X86_64_PC8[ ]+xtrn\+0x0*1 -.*[ ]+R_X86_64_PC32[ ]+xtrn\+0xf+c -.*[ ]+R_X86_64_PC32[ ]+xtrn\+0xf+c -.*[ ]+R_X86_64_PC32[ ]+xtrn\+0xf+c -.*[ ]+R_X86_64_PC8[ ]+xtrn\+0xf+f +.*[ ]+R_X86_64_PC32[ ]+xtrn-0x0*4 +.*[ ]+R_X86_64_PC32[ ]+xtrn-0x0*4 +.*[ ]+R_X86_64_PC32[ ]+xtrn-0x0*4 +.*[ ]+R_X86_64_PC8[ ]+xtrn-0x0*1 .*[ ]+R_X86_64_GOT64[ ]+xtrn .*[ ]+R_X86_64_GOT32[ ]+xtrn .*[ ]+R_X86_64_GOT32[ ]+xtrn .*[ ]+R_X86_64_GOTOFF64[ ]+xtrn .*[ ]+R_X86_64_GOTPCREL[ ]+xtrn .*[ ]+R_X86_64_GOTPCREL[ ]+xtrn -.*[ ]+R_X86_64_GOTPCREL[ ]+xtrn\+0xf+c +.*[ ]+R_X86_64_GOTPCREL[ ]+xtrn-0x0*4 .*[ ]+R_X86_64_GOTPC32[ ]+_GLOBAL_OFFSET_TABLE_\+0x0*2 -.*[ ]+R_X86_64_GOTPC32[ ]+_GLOBAL_OFFSET_TABLE_\+0xf+c -.*[ ]+R_X86_64_GOTPC32[ ]+_GLOBAL_OFFSET_TABLE_\+0xf+c +.*[ ]+R_X86_64_GOTPC32[ ]+_GLOBAL_OFFSET_TABLE_-0x0*4 +.*[ ]+R_X86_64_GOTPC32[ ]+_GLOBAL_OFFSET_TABLE_-0x0*4 .*[ ]+R_X86_64_GOTPC32[ ]+_GLOBAL_OFFSET_TABLE_\+0x0*2 .*[ ]+R_X86_64_PLT32[ ]+xtrn .*[ ]+R_X86_64_PLT32[ ]+xtrn -.*[ ]+R_X86_64_PLT32[ ]+xtrn\+0xf+c +.*[ ]+R_X86_64_PLT32[ ]+xtrn-0x0*4 .*[ ]+R_X86_64_TLSGD[ ]+xtrn .*[ ]+R_X86_64_TLSGD[ ]+xtrn -.*[ ]+R_X86_64_TLSGD[ ]+xtrn\+0xf+c +.*[ ]+R_X86_64_TLSGD[ ]+xtrn-0x0*4 .*[ ]+R_X86_64_GOTTPOFF[ ]+xtrn .*[ ]+R_X86_64_GOTTPOFF[ ]+xtrn -.*[ ]+R_X86_64_GOTTPOFF[ ]+xtrn\+0xf+c +.*[ ]+R_X86_64_GOTTPOFF[ ]+xtrn-0x0*4 .*[ ]+R_X86_64_TLSLD[ ]+xtrn .*[ ]+R_X86_64_TLSLD[ ]+xtrn -.*[ ]+R_X86_64_TLSLD[ ]+xtrn\+0xf+c +.*[ ]+R_X86_64_TLSLD[ ]+xtrn-0x0*4 .*[ ]+R_X86_64_DTPOFF64[ ]+xtrn .*[ ]+R_X86_64_DTPOFF32[ ]+xtrn .*[ ]+R_X86_64_DTPOFF32[ ]+xtrn diff --git a/gas/testsuite/gas/ia64/pcrel.d b/gas/testsuite/gas/ia64/pcrel.d index 674060d8bf3..a01c006f2ca 100644 --- a/gas/testsuite/gas/ia64/pcrel.d +++ b/gas/testsuite/gas/ia64/pcrel.d @@ -9,28 +9,28 @@ OFFSET[[:space:]]+TYPE[[:space:]]+VALUE[[:space:]]* 0+10[[:space:]]+PCREL22[[:space:]]+esym 0+20[[:space:]]+PCREL22[[:space:]]+esym\+0x0+20 0+30[[:space:]]+PCREL22[[:space:]]+esym -0+40[[:space:]]+PCREL22[[:space:]]+esym\+0xf+e0 +0+40[[:space:]]+PCREL22[[:space:]]+esym-0x0+20 RELOCATION RECORDS FOR \[\.movl\]: OFFSET[[:space:]]+TYPE[[:space:]]+VALUE[[:space:]]* 0+12[[:space:]]+PCREL64I[[:space:]]+esym 0+22[[:space:]]+PCREL64I[[:space:]]+esym\+0x0+20 0+32[[:space:]]+PCREL64I[[:space:]]+esym -0+42[[:space:]]+PCREL64I[[:space:]]+esym\+0xf+e0 +0+42[[:space:]]+PCREL64I[[:space:]]+esym-0x0+20 RELOCATION RECORDS FOR \[\.data8\]: OFFSET[[:space:]]+TYPE[[:space:]]+VALUE[[:space:]]* 0+10[[:space:]]+PCREL64[LM]SB[[:space:]]+esym 0+20[[:space:]]+PCREL64[LM]SB[[:space:]]+esym\+0x0+20 0+30[[:space:]]+PCREL64[LM]SB[[:space:]]+esym -0+40[[:space:]]+PCREL64[LM]SB[[:space:]]+esym\+0xf+e0 +0+40[[:space:]]+PCREL64[LM]SB[[:space:]]+esym-0x0+20 RELOCATION RECORDS FOR \[\.data4\]: OFFSET[[:space:]]+TYPE[[:space:]]+VALUE[[:space:]]* 0+10[[:space:]]+PCREL32[LM]SB[[:space:]]+esym 0+20[[:space:]]+PCREL32[LM]SB[[:space:]]+esym\+0x0+20 0+30[[:space:]]+PCREL32[LM]SB[[:space:]]+esym -0+40[[:space:]]+PCREL32[LM]SB[[:space:]]+esym\+0xf+e0 +0+40[[:space:]]+PCREL32[LM]SB[[:space:]]+esym-0x0+20 Contents of section \.mov: diff --git a/gas/testsuite/gas/mips/branch-misc-2-64.d b/gas/testsuite/gas/mips/branch-misc-2-64.d index 064c42fc26a..b540b8a5d43 100644 --- a/gas/testsuite/gas/mips/branch-misc-2-64.d +++ b/gas/testsuite/gas/mips/branch-misc-2-64.d @@ -13,51 +13,51 @@ Disassembly of section .text: \.\.\. \.\.\. 0+003c <[^>]*> 04110000 bal 0000000000000040 -[ ]*3c: R_MIPS_PC16 g1\+0xfffffffffffffffc -[ ]*3c: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc -[ ]*3c: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc +[ ]*3c: R_MIPS_PC16 g1-0x4 +[ ]*3c: R_MIPS_NONE \*ABS\*-0x4 +[ ]*3c: R_MIPS_NONE \*ABS\*-0x4 0+0040 <[^>]*> 00000000 nop 0+0044 <[^>]*> 04110000 bal 0000000000000048 -[ ]*44: R_MIPS_PC16 g2\+0xfffffffffffffffc -[ ]*44: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc -[ ]*44: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc +[ ]*44: R_MIPS_PC16 g2-0x4 +[ ]*44: R_MIPS_NONE \*ABS\*-0x4 +[ ]*44: R_MIPS_NONE \*ABS\*-0x4 0+0048 <[^>]*> 00000000 nop 0+004c <[^>]*> 04110000 bal 0000000000000050 -[ ]*4c: R_MIPS_PC16 g3\+0xfffffffffffffffc -[ ]*4c: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc -[ ]*4c: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc +[ ]*4c: R_MIPS_PC16 g3-0x4 +[ ]*4c: R_MIPS_NONE \*ABS\*-0x4 +[ ]*4c: R_MIPS_NONE \*ABS\*-0x4 0+0050 <[^>]*> 00000000 nop 0+0054 <[^>]*> 04110000 bal 0000000000000058 -[ ]*54: R_MIPS_PC16 g4\+0xfffffffffffffffc -[ ]*54: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc -[ ]*54: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc +[ ]*54: R_MIPS_PC16 g4-0x4 +[ ]*54: R_MIPS_NONE \*ABS\*-0x4 +[ ]*54: R_MIPS_NONE \*ABS\*-0x4 0+0058 <[^>]*> 00000000 nop 0+005c <[^>]*> 04110000 bal 0000000000000060 -[ ]*5c: R_MIPS_PC16 g5\+0xfffffffffffffffc -[ ]*5c: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc -[ ]*5c: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc +[ ]*5c: R_MIPS_PC16 g5-0x4 +[ ]*5c: R_MIPS_NONE \*ABS\*-0x4 +[ ]*5c: R_MIPS_NONE \*ABS\*-0x4 0+0060 <[^>]*> 00000000 nop 0+0064 <[^>]*> 04110000 bal 0000000000000068 -[ ]*64: R_MIPS_PC16 g6\+0xfffffffffffffffc -[ ]*64: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc -[ ]*64: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc +[ ]*64: R_MIPS_PC16 g6-0x4 +[ ]*64: R_MIPS_NONE \*ABS\*-0x4 +[ ]*64: R_MIPS_NONE \*ABS\*-0x4 0+0068 <[^>]*> 00000000 nop \.\.\. \.\.\. \.\.\. 0+00a8 <[^>]*> 10000000 b 00000000000000ac -[ ]*a8: R_MIPS_PC16 x1\+0xfffffffffffffffc -[ ]*a8: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc -[ ]*a8: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc +[ ]*a8: R_MIPS_PC16 x1-0x4 +[ ]*a8: R_MIPS_NONE \*ABS\*-0x4 +[ ]*a8: R_MIPS_NONE \*ABS\*-0x4 0+00ac <[^>]*> 00000000 nop 0+00b0 <[^>]*> 10000000 b 00000000000000b4 -[ ]*b0: R_MIPS_PC16 x2\+0xfffffffffffffffc -[ ]*b0: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc -[ ]*b0: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc +[ ]*b0: R_MIPS_PC16 x2-0x4 +[ ]*b0: R_MIPS_NONE \*ABS\*-0x4 +[ ]*b0: R_MIPS_NONE \*ABS\*-0x4 0+00b4 <[^>]*> 00000000 nop 0+00b8 <[^>]*> 10000000 b 00000000000000bc -[ ]*b8: R_MIPS_PC16 \.data\+0xfffffffffffffffc -[ ]*b8: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc -[ ]*b8: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc +[ ]*b8: R_MIPS_PC16 \.data-0x4 +[ ]*b8: R_MIPS_NONE \*ABS\*-0x4 +[ ]*b8: R_MIPS_NONE \*ABS\*-0x4 0+00bc <[^>]*> 00000000 nop \.\.\. diff --git a/gas/testsuite/gas/mips/branch-misc-2pic-64.d b/gas/testsuite/gas/mips/branch-misc-2pic-64.d index 6b8720da180..3cb292da23d 100644 --- a/gas/testsuite/gas/mips/branch-misc-2pic-64.d +++ b/gas/testsuite/gas/mips/branch-misc-2pic-64.d @@ -13,51 +13,51 @@ Disassembly of section .text: \.\.\. \.\.\. 0+003c <[^>]*> 04110000 bal 0000000000000040 -[ ]*3c: R_MIPS_PC16 g1\+0xfffffffffffffffc -[ ]*3c: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc -[ ]*3c: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc +[ ]*3c: R_MIPS_PC16 g1-0x4 +[ ]*3c: R_MIPS_NONE \*ABS\*-0x4 +[ ]*3c: R_MIPS_NONE \*ABS\*-0x4 0+0040 <[^>]*> 00000000 nop 0+0044 <[^>]*> 04110000 bal 0000000000000048 -[ ]*44: R_MIPS_PC16 g2\+0xfffffffffffffffc -[ ]*44: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc -[ ]*44: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc +[ ]*44: R_MIPS_PC16 g2-0x4 +[ ]*44: R_MIPS_NONE \*ABS\*-0x4 +[ ]*44: R_MIPS_NONE \*ABS\*-0x4 0+0048 <[^>]*> 00000000 nop 0+004c <[^>]*> 04110000 bal 0000000000000050 -[ ]*4c: R_MIPS_PC16 g3\+0xfffffffffffffffc -[ ]*4c: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc -[ ]*4c: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc +[ ]*4c: R_MIPS_PC16 g3-0x4 +[ ]*4c: R_MIPS_NONE \*ABS\*-0x4 +[ ]*4c: R_MIPS_NONE \*ABS\*-0x4 0+0050 <[^>]*> 00000000 nop 0+0054 <[^>]*> 04110000 bal 0000000000000058 -[ ]*54: R_MIPS_PC16 g4\+0xfffffffffffffffc -[ ]*54: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc -[ ]*54: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc +[ ]*54: R_MIPS_PC16 g4-0x4 +[ ]*54: R_MIPS_NONE \*ABS\*-0x4 +[ ]*54: R_MIPS_NONE \*ABS\*-0x4 0+0058 <[^>]*> 00000000 nop 0+005c <[^>]*> 04110000 bal 0000000000000060 -[ ]*5c: R_MIPS_PC16 g5\+0xfffffffffffffffc -[ ]*5c: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc -[ ]*5c: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc +[ ]*5c: R_MIPS_PC16 g5-0x4 +[ ]*5c: R_MIPS_NONE \*ABS\*-0x4 +[ ]*5c: R_MIPS_NONE \*ABS\*-0x4 0+0060 <[^>]*> 00000000 nop 0+0064 <[^>]*> 04110000 bal 0000000000000068 -[ ]*64: R_MIPS_PC16 g6\+0xfffffffffffffffc -[ ]*64: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc -[ ]*64: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc +[ ]*64: R_MIPS_PC16 g6-0x4 +[ ]*64: R_MIPS_NONE \*ABS\*-0x4 +[ ]*64: R_MIPS_NONE \*ABS\*-0x4 0+0068 <[^>]*> 00000000 nop \.\.\. \.\.\. \.\.\. 0+00a8 <[^>]*> 10000000 b 00000000000000ac -[ ]*a8: R_MIPS_PC16 x1\+0xfffffffffffffffc -[ ]*a8: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc -[ ]*a8: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc +[ ]*a8: R_MIPS_PC16 x1-0x4 +[ ]*a8: R_MIPS_NONE \*ABS\*-0x4 +[ ]*a8: R_MIPS_NONE \*ABS\*-0x4 0+00ac <[^>]*> 00000000 nop 0+00b0 <[^>]*> 10000000 b 00000000000000b4 -[ ]*b0: R_MIPS_PC16 x2\+0xfffffffffffffffc -[ ]*b0: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc -[ ]*b0: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc +[ ]*b0: R_MIPS_PC16 x2-0x4 +[ ]*b0: R_MIPS_NONE \*ABS\*-0x4 +[ ]*b0: R_MIPS_NONE \*ABS\*-0x4 0+00b4 <[^>]*> 00000000 nop 0+00b8 <[^>]*> 10000000 b 00000000000000bc -[ ]*b8: R_MIPS_PC16 \.data\+0xfffffffffffffffc -[ ]*b8: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc -[ ]*b8: R_MIPS_NONE \*ABS\*\+0xfffffffffffffffc +[ ]*b8: R_MIPS_PC16 \.data-0x4 +[ ]*b8: R_MIPS_NONE \*ABS\*-0x4 +[ ]*b8: R_MIPS_NONE \*ABS\*-0x4 0+00bc <[^>]*> 00000000 nop \.\.\. diff --git a/gas/testsuite/gas/mips/branch-misc-4-64.d b/gas/testsuite/gas/mips/branch-misc-4-64.d index 13c77d7f86a..b432fe0591b 100644 --- a/gas/testsuite/gas/mips/branch-misc-4-64.d +++ b/gas/testsuite/gas/mips/branch-misc-4-64.d @@ -10,9 +10,9 @@ Disassembly of section \.text: \.\.\. [0-9a-f]+ <[^>]*> 10000000 b [0-9a-f]+ -[ ]*[0-9a-f]+: R_MIPS_PC16 bar\+0xf+fffc -[ ]*[0-9a-f]+: R_MIPS_NONE \*ABS\*\+0xf+fffc -[ ]*[0-9a-f]+: R_MIPS_NONE \*ABS\*\+0xf+fffc +[ ]*[0-9a-f]+: R_MIPS_PC16 bar\-0x4 +[ ]*[0-9a-f]+: R_MIPS_NONE \*ABS\*\-0x4 +[ ]*[0-9a-f]+: R_MIPS_NONE \*ABS\*\-0x4 [0-9a-f]+ <[^>]*> 00000000 nop [0-9a-f]+ <[^>]*> 10000000 b [0-9a-f]+ [ ]*[0-9a-f]+: R_MIPS_PC16 \.init\+0x4 @@ -23,9 +23,9 @@ Disassembly of section \.text: Disassembly of section \.init: [0-9a-f]+ <[^>]*> 10000000 b [0-9a-f]+ -[ ]*[0-9a-f]+: R_MIPS_PC16 foo\+0xf+fffc -[ ]*[0-9a-f]+: R_MIPS_NONE \*ABS\*\+0xf+fffc -[ ]*[0-9a-f]+: R_MIPS_NONE \*ABS\*\+0xf+fffc +[ ]*[0-9a-f]+: R_MIPS_PC16 foo\-0x4 +[ ]*[0-9a-f]+: R_MIPS_NONE \*ABS\*\-0x4 +[ ]*[0-9a-f]+: R_MIPS_NONE \*ABS\*\-0x4 [0-9a-f]+ <[^>]*> 00000000 nop [0-9a-f]+ <[^>]*> 10000000 b [0-9a-f]+ [ ]*[0-9a-f]+: R_MIPS_PC16 \.text\+0x40004 diff --git a/gas/testsuite/gas/mips/ldstla-n64-sym32.d b/gas/testsuite/gas/mips/ldstla-n64-sym32.d index 8d30cfb511c..066d7499055 100644 --- a/gas/testsuite/gas/mips/ldstla-n64-sym32.d +++ b/gas/testsuite/gas/mips/ldstla-n64-sym32.d @@ -196,19 +196,19 @@ Disassembly .*: .*: R_MIPS_NONE .* .* daddu a0,a0,v1 .* lui a0,0x0 -.*: R_MIPS_HI16 extern\+0xfffffffffffcc000 +.*: R_MIPS_HI16 extern-0x34000 .*: R_MIPS_NONE .* .*: R_MIPS_NONE .* .* d?addiu a0,a0,0 -.*: R_MIPS_LO16 extern\+0xfffffffffffcc000 +.*: R_MIPS_LO16 extern-0x34000 .*: R_MIPS_NONE .* .*: R_MIPS_NONE .* .* lui a0,0x0 -.*: R_MIPS_HI16 extern\+0xfffffffffffcc000 +.*: R_MIPS_HI16 extern-0x34000 .*: R_MIPS_NONE .* .*: R_MIPS_NONE .* .* d?addiu a0,a0,0 -.*: R_MIPS_LO16 extern\+0xfffffffffffcc000 +.*: R_MIPS_LO16 extern-0x34000 .*: R_MIPS_NONE .* .*: R_MIPS_NONE .* .* daddu a0,a0,v1 @@ -406,20 +406,20 @@ Disassembly .*: .*: R_MIPS_NONE .* .*: R_MIPS_NONE .* .* lui a0,0x0 -.*: R_MIPS_HI16 extern\+0xfffffffffffcc000 +.*: R_MIPS_HI16 extern-0x34000 .*: R_MIPS_NONE .* .*: R_MIPS_NONE .* .* lw a0,0\(a0\) -.*: R_MIPS_LO16 extern\+0xfffffffffffcc000 +.*: R_MIPS_LO16 extern-0x34000 .*: R_MIPS_NONE .* .*: R_MIPS_NONE .* .* lui a0,0x0 -.*: R_MIPS_HI16 extern\+0xfffffffffffcc000 +.*: R_MIPS_HI16 extern-0x34000 .*: R_MIPS_NONE .* .*: R_MIPS_NONE .* .* daddu a0,a0,v1 .* lw a0,0\(a0\) -.*: R_MIPS_LO16 extern\+0xfffffffffffcc000 +.*: R_MIPS_LO16 extern-0x34000 .*: R_MIPS_NONE .* .*: R_MIPS_NONE .* # @@ -616,20 +616,20 @@ Disassembly .*: .*: R_MIPS_NONE .* .*: R_MIPS_NONE .* .* lui at,0x0 -.*: R_MIPS_HI16 extern\+0xfffffffffffcc000 +.*: R_MIPS_HI16 extern-0x34000 .*: R_MIPS_NONE .* .*: R_MIPS_NONE .* .* sw a0,0\(at\) -.*: R_MIPS_LO16 extern\+0xfffffffffffcc000 +.*: R_MIPS_LO16 extern-0x34000 .*: R_MIPS_NONE .* .*: R_MIPS_NONE .* .* lui at,0x0 -.*: R_MIPS_HI16 extern\+0xfffffffffffcc000 +.*: R_MIPS_HI16 extern-0x34000 .*: R_MIPS_NONE .* .*: R_MIPS_NONE .* .* daddu at,at,v1 .* sw a0,0\(at\) -.*: R_MIPS_LO16 extern\+0xfffffffffffcc000 +.*: R_MIPS_LO16 extern-0x34000 .*: R_MIPS_NONE .* .*: R_MIPS_NONE .* # @@ -880,21 +880,21 @@ Disassembly .*: .* swl a0,0\(at\) .* swr a0,3\(at\) .* lui at,0x0 -.*: R_MIPS_HI16 extern\+0xfffffffffffcc000 +.*: R_MIPS_HI16 extern-0x34000 .*: R_MIPS_NONE .* .*: R_MIPS_NONE .* .* d?addiu at,at,0 -.*: R_MIPS_LO16 extern\+0xfffffffffffcc000 +.*: R_MIPS_LO16 extern-0x34000 .*: R_MIPS_NONE .* .*: R_MIPS_NONE .* .* swl a0,0\(at\) .* swr a0,3\(at\) .* lui at,0x0 -.*: R_MIPS_HI16 extern\+0xfffffffffffcc000 +.*: R_MIPS_HI16 extern-0x34000 .*: R_MIPS_NONE .* .*: R_MIPS_NONE .* .* d?addiu at,at,0 -.*: R_MIPS_LO16 extern\+0xfffffffffffcc000 +.*: R_MIPS_LO16 extern-0x34000 .*: R_MIPS_NONE .* .*: R_MIPS_NONE .* .* daddu at,at,v1 diff --git a/gas/testsuite/gas/mips/micromips@branch-misc-2-64.d b/gas/testsuite/gas/mips/micromips@branch-misc-2-64.d index 3a265b1a78a..61f27f72681 100644 --- a/gas/testsuite/gas/mips/micromips@branch-misc-2-64.d +++ b/gas/testsuite/gas/mips/micromips@branch-misc-2-64.d @@ -12,52 +12,52 @@ Disassembly of section \.text: \.\.\. \.\.\. [0-9a-f]+ <[^>]*> 4060 0000 bal 0+0040 - 3c: R_MICROMIPS_PC16_S1 g1\+0xf+fffc - 3c: R_MIPS_NONE \*ABS\*\+0xf+fffc - 3c: R_MIPS_NONE \*ABS\*\+0xf+fffc + 3c: R_MICROMIPS_PC16_S1 g1\-0x4 + 3c: R_MIPS_NONE \*ABS\*\-0x4 + 3c: R_MIPS_NONE \*ABS\*\-0x4 [0-9a-f]+ <[^>]*> 0000 0000 nop [0-9a-f]+ <[^>]*> 4060 0000 bal 0+0048 - 44: R_MICROMIPS_PC16_S1 g2\+0xf+fffc - 44: R_MIPS_NONE \*ABS\*\+0xf+fffc - 44: R_MIPS_NONE \*ABS\*\+0xf+fffc + 44: R_MICROMIPS_PC16_S1 g2\-0x4 + 44: R_MIPS_NONE \*ABS\*\-0x4 + 44: R_MIPS_NONE \*ABS\*\-0x4 [0-9a-f]+ <[^>]*> 0000 0000 nop [0-9a-f]+ <[^>]*> 4060 0000 bal 0+0050 - 4c: R_MICROMIPS_PC16_S1 g3\+0xf+fffc - 4c: R_MIPS_NONE \*ABS\*\+0xf+fffc - 4c: R_MIPS_NONE \*ABS\*\+0xf+fffc + 4c: R_MICROMIPS_PC16_S1 g3\-0x4 + 4c: R_MIPS_NONE \*ABS\*\-0x4 + 4c: R_MIPS_NONE \*ABS\*\-0x4 [0-9a-f]+ <[^>]*> 0000 0000 nop [0-9a-f]+ <[^>]*> 4060 0000 bal 0+0058 - 54: R_MICROMIPS_PC16_S1 g4\+0xf+fffc - 54: R_MIPS_NONE \*ABS\*\+0xf+fffc - 54: R_MIPS_NONE \*ABS\*\+0xf+fffc + 54: R_MICROMIPS_PC16_S1 g4\-0x4 + 54: R_MIPS_NONE \*ABS\*\-0x4 + 54: R_MIPS_NONE \*ABS\*\-0x4 [0-9a-f]+ <[^>]*> 0000 0000 nop [0-9a-f]+ <[^>]*> 4060 0000 bal 0+0060 - 5c: R_MICROMIPS_PC16_S1 g5\+0xf+fffc - 5c: R_MIPS_NONE \*ABS\*\+0xf+fffc - 5c: R_MIPS_NONE \*ABS\*\+0xf+fffc + 5c: R_MICROMIPS_PC16_S1 g5\-0x4 + 5c: R_MIPS_NONE \*ABS\*\-0x4 + 5c: R_MIPS_NONE \*ABS\*\-0x4 [0-9a-f]+ <[^>]*> 0000 0000 nop [0-9a-f]+ <[^>]*> 4060 0000 bal 0+0068 - 64: R_MICROMIPS_PC16_S1 g6\+0xf+fffc - 64: R_MIPS_NONE \*ABS\*\+0xf+fffc - 64: R_MIPS_NONE \*ABS\*\+0xf+fffc + 64: R_MICROMIPS_PC16_S1 g6\-0x4 + 64: R_MIPS_NONE \*ABS\*\-0x4 + 64: R_MIPS_NONE \*ABS\*\-0x4 [0-9a-f]+ <[^>]*> 0000 0000 nop \.\.\. \.\.\. \.\.\. [0-9a-f]+ <[^>]*> 9400 0000 b 0+00ac - a8: R_MICROMIPS_PC16_S1 x1\+0xf+fffc - a8: R_MIPS_NONE \*ABS\*\+0xf+fffc - a8: R_MIPS_NONE \*ABS\*\+0xf+fffc + a8: R_MICROMIPS_PC16_S1 x1\-0x4 + a8: R_MIPS_NONE \*ABS\*\-0x4 + a8: R_MIPS_NONE \*ABS\*\-0x4 [0-9a-f]+ <[^>]*> 0c00 nop [0-9a-f]+ <[^>]*> 9400 0000 b 0+00b2 - ae: R_MICROMIPS_PC16_S1 x2\+0xf+fffc - ae: R_MIPS_NONE \*ABS\*\+0xf+fffc - ae: R_MIPS_NONE \*ABS\*\+0xf+fffc + ae: R_MICROMIPS_PC16_S1 x2\-0x4 + ae: R_MIPS_NONE \*ABS\*\-0x4 + ae: R_MIPS_NONE \*ABS\*\-0x4 [0-9a-f]+ <[^>]*> 0c00 nop [0-9a-f]+ <[^>]*> 9400 0000 b 0+00b8 - b4: R_MICROMIPS_PC16_S1 \.data\+0xf+fffc - b4: R_MIPS_NONE \*ABS\*\+0xf+fffc - b4: R_MIPS_NONE \*ABS\*\+0xf+fffc + b4: R_MICROMIPS_PC16_S1 \.data\-0x4 + b4: R_MIPS_NONE \*ABS\*\-0x4 + b4: R_MIPS_NONE \*ABS\*\-0x4 [0-9a-f]+ <[^>]*> 0c00 nop [0-9a-f]+ <[^>]*> 0c00 nop \.\.\. diff --git a/gas/testsuite/gas/mips/micromips@branch-misc-2pic-64.d b/gas/testsuite/gas/mips/micromips@branch-misc-2pic-64.d index 609daa42f56..7b8b40a496a 100644 --- a/gas/testsuite/gas/mips/micromips@branch-misc-2pic-64.d +++ b/gas/testsuite/gas/mips/micromips@branch-misc-2pic-64.d @@ -12,52 +12,52 @@ Disassembly of section \.text: \.\.\. \.\.\. [0-9a-f]+ <[^>]*> 4060 0000 bal 0+0040 - 3c: R_MICROMIPS_PC16_S1 g1\+0xf+fffc - 3c: R_MIPS_NONE \*ABS\*\+0xf+fffc - 3c: R_MIPS_NONE \*ABS\*\+0xf+fffc + 3c: R_MICROMIPS_PC16_S1 g1\-0x4 + 3c: R_MIPS_NONE \*ABS\*\-0x4 + 3c: R_MIPS_NONE \*ABS\*\-0x4 [0-9a-f]+ <[^>]*> 0000 0000 nop [0-9a-f]+ <[^>]*> 4060 0000 bal 0+0048 - 44: R_MICROMIPS_PC16_S1 g2\+0xf+fffc - 44: R_MIPS_NONE \*ABS\*\+0xf+fffc - 44: R_MIPS_NONE \*ABS\*\+0xf+fffc + 44: R_MICROMIPS_PC16_S1 g2\-0x4 + 44: R_MIPS_NONE \*ABS\*\-0x4 + 44: R_MIPS_NONE \*ABS\*\-0x4 [0-9a-f]+ <[^>]*> 0000 0000 nop [0-9a-f]+ <[^>]*> 4060 0000 bal 0+0050 - 4c: R_MICROMIPS_PC16_S1 g3\+0xf+fffc - 4c: R_MIPS_NONE \*ABS\*\+0xf+fffc - 4c: R_MIPS_NONE \*ABS\*\+0xf+fffc + 4c: R_MICROMIPS_PC16_S1 g3\-0x4 + 4c: R_MIPS_NONE \*ABS\*\-0x4 + 4c: R_MIPS_NONE \*ABS\*\-0x4 [0-9a-f]+ <[^>]*> 0000 0000 nop [0-9a-f]+ <[^>]*> 4060 0000 bal 0+0058 - 54: R_MICROMIPS_PC16_S1 g4\+0xf+fffc - 54: R_MIPS_NONE \*ABS\*\+0xf+fffc - 54: R_MIPS_NONE \*ABS\*\+0xf+fffc + 54: R_MICROMIPS_PC16_S1 g4\-0x4 + 54: R_MIPS_NONE \*ABS\*\-0x4 + 54: R_MIPS_NONE \*ABS\*\-0x4 [0-9a-f]+ <[^>]*> 0000 0000 nop [0-9a-f]+ <[^>]*> 4060 0000 bal 0+0060 - 5c: R_MICROMIPS_PC16_S1 g5\+0xf+fffc - 5c: R_MIPS_NONE \*ABS\*\+0xf+fffc - 5c: R_MIPS_NONE \*ABS\*\+0xf+fffc + 5c: R_MICROMIPS_PC16_S1 g5\-0x4 + 5c: R_MIPS_NONE \*ABS\*\-0x4 + 5c: R_MIPS_NONE \*ABS\*\-0x4 [0-9a-f]+ <[^>]*> 0000 0000 nop [0-9a-f]+ <[^>]*> 4060 0000 bal 0+0068 - 64: R_MICROMIPS_PC16_S1 g6\+0xf+fffc - 64: R_MIPS_NONE \*ABS\*\+0xf+fffc - 64: R_MIPS_NONE \*ABS\*\+0xf+fffc + 64: R_MICROMIPS_PC16_S1 g6\-0x4 + 64: R_MIPS_NONE \*ABS\*\-0x4 + 64: R_MIPS_NONE \*ABS\*\-0x4 [0-9a-f]+ <[^>]*> 0000 0000 nop \.\.\. \.\.\. \.\.\. [0-9a-f]+ <[^>]*> 9400 0000 b 0+00ac - a8: R_MICROMIPS_PC16_S1 x1\+0xf+fffc - a8: R_MIPS_NONE \*ABS\*\+0xf+fffc - a8: R_MIPS_NONE \*ABS\*\+0xf+fffc + a8: R_MICROMIPS_PC16_S1 x1\-0x4 + a8: R_MIPS_NONE \*ABS\*\-0x4 + a8: R_MIPS_NONE \*ABS\*\-0x4 [0-9a-f]+ <[^>]*> 0c00 nop [0-9a-f]+ <[^>]*> 9400 0000 b 0+00b2 - ae: R_MICROMIPS_PC16_S1 x2\+0xf+fffc - ae: R_MIPS_NONE \*ABS\*\+0xf+fffc - ae: R_MIPS_NONE \*ABS\*\+0xf+fffc + ae: R_MICROMIPS_PC16_S1 x2\-0x4 + ae: R_MIPS_NONE \*ABS\*\-0x4 + ae: R_MIPS_NONE \*ABS\*\-0x4 [0-9a-f]+ <[^>]*> 0c00 nop [0-9a-f]+ <[^>]*> 9400 0000 b 0+00b8 - b4: R_MICROMIPS_PC16_S1 \.data\+0xf+fffc - b4: R_MIPS_NONE \*ABS\*\+0xf+fffc - b4: R_MIPS_NONE \*ABS\*\+0xf+fffc + b4: R_MICROMIPS_PC16_S1 \.data\-0x4 + b4: R_MIPS_NONE \*ABS\*\-0x4 + b4: R_MIPS_NONE \*ABS\*\-0x4 [0-9a-f]+ <[^>]*> 0c00 nop [0-9a-f]+ <[^>]*> 0c00 nop \.\.\. diff --git a/gas/testsuite/gas/mips/micromips@branch-misc-4-64.d b/gas/testsuite/gas/mips/micromips@branch-misc-4-64.d index 80cfce91517..008dac004ed 100644 --- a/gas/testsuite/gas/mips/micromips@branch-misc-4-64.d +++ b/gas/testsuite/gas/mips/micromips@branch-misc-4-64.d @@ -10,9 +10,9 @@ Disassembly of section \.text: \.\.\. [0-9a-f]+ <[^>]*> 9400 0000 b [0-9a-f]+ -[ ]*[0-9a-f]+: R_MICROMIPS_PC16_S1 bar\+0xf+fffc -[ ]*[0-9a-f]+: R_MIPS_NONE \*ABS\*\+0xf+fffc -[ ]*[0-9a-f]+: R_MIPS_NONE \*ABS\*\+0xf+fffc +[ ]*[0-9a-f]+: R_MICROMIPS_PC16_S1 bar\-0x4 +[ ]*[0-9a-f]+: R_MIPS_NONE \*ABS\*\-0x4 +[ ]*[0-9a-f]+: R_MIPS_NONE \*ABS\*\-0x4 [0-9a-f]+ <[^>]*> 0c00 nop [0-9a-f]+ <[^>]*> 9400 0000 b [0-9a-f]+ [ ]*[0-9a-f]+: R_MICROMIPS_PC16_S1 \.init\+0x2 @@ -23,9 +23,9 @@ Disassembly of section \.text: Disassembly of section \.init: [0-9a-f]+ <[^>]*> 9400 0000 b [0-9a-f]+ -[ ]*[0-9a-f]+: R_MICROMIPS_PC16_S1 foo\+0xf+fffc -[ ]*[0-9a-f]+: R_MIPS_NONE \*ABS\*\+0xf+fffc -[ ]*[0-9a-f]+: R_MIPS_NONE \*ABS\*\+0xf+fffc +[ ]*[0-9a-f]+: R_MICROMIPS_PC16_S1 foo\-0x4 +[ ]*[0-9a-f]+: R_MIPS_NONE \*ABS\*\-0x4 +[ ]*[0-9a-f]+: R_MIPS_NONE \*ABS\*\-0x4 [0-9a-f]+ <[^>]*> 0c00 nop [0-9a-f]+ <[^>]*> 9400 0000 b [0-9a-f]+ [ ]*[0-9a-f]+: R_MICROMIPS_PC16_S1 \.text\+0x40002 diff --git a/gas/testsuite/gas/mips/mips16-hilo-n32.d b/gas/testsuite/gas/mips/mips16-hilo-n32.d index 2e3c8a15bd6..5ac680d2b36 100644 --- a/gas/testsuite/gas/mips/mips16-hilo-n32.d +++ b/gas/testsuite/gas/mips/mips16-hilo-n32.d @@ -141,45 +141,45 @@ Disassembly of section \.text: 13c: f400 3480 sll a0,16 140: f010 4c00 addiu a0,-32768 144: f000 6c00 li a0,0 - 144: R_MIPS16_HI16 \.data\+0xffff8000 + 144: R_MIPS16_HI16 \.data-0x8000 148: f400 3480 sll a0,16 14c: f000 4c00 addiu a0,0 - 14c: R_MIPS16_LO16 \.data\+0xffff8000 + 14c: R_MIPS16_LO16 \.data-0x8000 150: f000 6c00 li a0,0 - 150: R_MIPS16_HI16 \.data\+0xffff8004 + 150: R_MIPS16_HI16 \.data-0x7ffc 154: f400 3480 sll a0,16 158: f000 4c00 addiu a0,0 - 158: R_MIPS16_LO16 \.data\+0xffff8004 + 158: R_MIPS16_LO16 \.data-0x7ffc 15c: f000 6c00 li a0,0 - 15c: R_MIPS16_HI16 big_external_data_label\+0xffff8000 + 15c: R_MIPS16_HI16 big_external_data_label-0x8000 160: f400 3480 sll a0,16 164: f000 4c00 addiu a0,0 - 164: R_MIPS16_LO16 big_external_data_label\+0xffff8000 + 164: R_MIPS16_LO16 big_external_data_label-0x8000 168: f000 6c00 li a0,0 - 168: R_MIPS16_HI16 small_external_data_label\+0xffff8000 + 168: R_MIPS16_HI16 small_external_data_label-0x8000 16c: f400 3480 sll a0,16 170: f000 4c00 addiu a0,0 - 170: R_MIPS16_LO16 small_external_data_label\+0xffff8000 + 170: R_MIPS16_LO16 small_external_data_label-0x8000 174: f000 6c00 li a0,0 - 174: R_MIPS16_HI16 big_external_common\+0xffff8000 + 174: R_MIPS16_HI16 big_external_common-0x8000 178: f400 3480 sll a0,16 17c: f000 4c00 addiu a0,0 - 17c: R_MIPS16_LO16 big_external_common\+0xffff8000 + 17c: R_MIPS16_LO16 big_external_common-0x8000 180: f000 6c00 li a0,0 - 180: R_MIPS16_HI16 small_external_common\+0xffff8000 + 180: R_MIPS16_HI16 small_external_common-0x8000 184: f400 3480 sll a0,16 188: f000 4c00 addiu a0,0 - 188: R_MIPS16_LO16 small_external_common\+0xffff8000 + 188: R_MIPS16_LO16 small_external_common-0x8000 18c: f000 6c00 li a0,0 - 18c: R_MIPS16_HI16 \.bss\+0xffff8000 + 18c: R_MIPS16_HI16 \.bss-0x8000 190: f400 3480 sll a0,16 194: f000 4c00 addiu a0,0 - 194: R_MIPS16_LO16 \.bss\+0xffff8000 + 194: R_MIPS16_LO16 \.bss-0x8000 198: f000 6c00 li a0,0 - 198: R_MIPS16_HI16 \.sbss\+0xffff8000 + 198: R_MIPS16_HI16 \.sbss-0x8000 19c: f400 3480 sll a0,16 1a0: f000 4c00 addiu a0,0 - 1a0: R_MIPS16_LO16 \.sbss\+0xffff8000 + 1a0: R_MIPS16_LO16 \.sbss-0x8000 1a4: 6c01 li a0,1 1a6: f400 3480 sll a0,16 1aa: 4c00 addiu a0,0 @@ -399,45 +399,45 @@ Disassembly of section \.text: 3b4: f400 35a0 sll a1,16 3b8: f010 9d80 lw a0,-32768\(a1\) 3bc: f000 6d00 li a1,0 - 3bc: R_MIPS16_HI16 \.data\+0xffff8000 + 3bc: R_MIPS16_HI16 \.data-0x8000 3c0: f400 35a0 sll a1,16 3c4: f000 9d80 lw a0,0\(a1\) - 3c4: R_MIPS16_LO16 \.data\+0xffff8000 + 3c4: R_MIPS16_LO16 \.data-0x8000 3c8: f000 6d00 li a1,0 - 3c8: R_MIPS16_HI16 \.data\+0xffff8004 + 3c8: R_MIPS16_HI16 \.data-0x7ffc 3cc: f400 35a0 sll a1,16 3d0: f000 9d80 lw a0,0\(a1\) - 3d0: R_MIPS16_LO16 \.data\+0xffff8004 + 3d0: R_MIPS16_LO16 \.data-0x7ffc 3d4: f000 6d00 li a1,0 - 3d4: R_MIPS16_HI16 big_external_data_label\+0xffff8000 + 3d4: R_MIPS16_HI16 big_external_data_label-0x8000 3d8: f400 35a0 sll a1,16 3dc: f000 9d80 lw a0,0\(a1\) - 3dc: R_MIPS16_LO16 big_external_data_label\+0xffff8000 + 3dc: R_MIPS16_LO16 big_external_data_label-0x8000 3e0: f000 6d00 li a1,0 - 3e0: R_MIPS16_HI16 small_external_data_label\+0xffff8000 + 3e0: R_MIPS16_HI16 small_external_data_label-0x8000 3e4: f400 35a0 sll a1,16 3e8: f000 9d80 lw a0,0\(a1\) - 3e8: R_MIPS16_LO16 small_external_data_label\+0xffff8000 + 3e8: R_MIPS16_LO16 small_external_data_label-0x8000 3ec: f000 6d00 li a1,0 - 3ec: R_MIPS16_HI16 big_external_common\+0xffff8000 + 3ec: R_MIPS16_HI16 big_external_common-0x8000 3f0: f400 35a0 sll a1,16 3f4: f000 9d80 lw a0,0\(a1\) - 3f4: R_MIPS16_LO16 big_external_common\+0xffff8000 + 3f4: R_MIPS16_LO16 big_external_common-0x8000 3f8: f000 6d00 li a1,0 - 3f8: R_MIPS16_HI16 small_external_common\+0xffff8000 + 3f8: R_MIPS16_HI16 small_external_common-0x8000 3fc: f400 35a0 sll a1,16 400: f000 9d80 lw a0,0\(a1\) - 400: R_MIPS16_LO16 small_external_common\+0xffff8000 + 400: R_MIPS16_LO16 small_external_common-0x8000 404: f000 6d00 li a1,0 - 404: R_MIPS16_HI16 \.bss\+0xffff8000 + 404: R_MIPS16_HI16 \.bss-0x8000 408: f400 35a0 sll a1,16 40c: f000 9d80 lw a0,0\(a1\) - 40c: R_MIPS16_LO16 \.bss\+0xffff8000 + 40c: R_MIPS16_LO16 \.bss-0x8000 410: f000 6d00 li a1,0 - 410: R_MIPS16_HI16 \.sbss\+0xffff8000 + 410: R_MIPS16_HI16 \.sbss-0x8000 414: f400 35a0 sll a1,16 418: f000 9d80 lw a0,0\(a1\) - 418: R_MIPS16_LO16 \.sbss\+0xffff8000 + 418: R_MIPS16_LO16 \.sbss-0x8000 41c: 6d01 li a1,1 41e: f400 35a0 sll a1,16 422: 9d80 lw a0,0\(a1\) diff --git a/gas/testsuite/gas/ppc/astest.d b/gas/testsuite/gas/ppc/astest.d index 715bc4e4601..aebc745f7ac 100644 --- a/gas/testsuite/gas/ppc/astest.d +++ b/gas/testsuite/gas/ppc/astest.d @@ -52,11 +52,11 @@ Disassembly of section \.text: 60: 00 00 00 00 \.long 0x0 60: R_PPC_ADDR32 z 64: ff ff ff fc fnmsub f31,f31,f31,f31 - 64: R_PPC_ADDR32 x\+0xf+ffffffc + 64: R_PPC_ADDR32 x-0x4 68: 00 00 00 00 \.long 0x0 68: R_PPC_ADDR32 \.data 6c: ff ff ff fc fnmsub f31,f31,f31,f31 - 6c: R_PPC_ADDR32 z\+0xf+ffffffc + 6c: R_PPC_ADDR32 z-0x4 70: ff ff ff 9c \.long 0xffffff9c 74: ff ff ff 9c \.long 0xffffff9c 78: 00 00 00 00 \.long 0x0 diff --git a/gas/testsuite/gas/ppc/astest2.d b/gas/testsuite/gas/ppc/astest2.d index e0e1943b06b..030e9858b1f 100644 --- a/gas/testsuite/gas/ppc/astest2.d +++ b/gas/testsuite/gas/ppc/astest2.d @@ -48,11 +48,11 @@ Disassembly of section \.text: 60: 00 00 00 00 \.long 0x0 60: R_PPC_ADDR32 z 64: ff ff ff fc fnmsub f31,f31,f31,f31 - 64: R_PPC_ADDR32 x\+0xf+ffffffc + 64: R_PPC_ADDR32 x-0x4 68: 00 00 00 00 \.long 0x0 68: R_PPC_ADDR32 \.data 6c: ff ff ff fc fnmsub f31,f31,f31,f31 - 6c: R_PPC_ADDR32 z\+0xf+ffffffc + 6c: R_PPC_ADDR32 z-0x4 70: 00 00 00 08 \.long 0x8 74: 00 00 00 08 \.long 0x8 diff --git a/gas/testsuite/gas/ppc/astest2_64.d b/gas/testsuite/gas/ppc/astest2_64.d index 356db54eccc..901d425dc68 100644 --- a/gas/testsuite/gas/ppc/astest2_64.d +++ b/gas/testsuite/gas/ppc/astest2_64.d @@ -45,11 +45,11 @@ Disassembly of section \.text: 58: 00 00 00 00 \.long 0x0 58: R_PPC64_ADDR32 z 5c: ff ff ff fc fnmsub f31,f31,f31,f31 - 5c: R_PPC64_ADDR32 x\+0xfffffffffffffffc + 5c: R_PPC64_ADDR32 x-0x4 60: 00 00 00 00 \.long 0x0 60: R_PPC64_ADDR32 \.data 64: ff ff ff fc fnmsub f31,f31,f31,f31 - 64: R_PPC64_ADDR32 z\+0xfffffffffffffffc + 64: R_PPC64_ADDR32 z-0x4 68: 00 00 00 08 \.long 0x8 6c: 00 00 00 08 \.long 0x8 diff --git a/gas/testsuite/gas/ppc/astest64.d b/gas/testsuite/gas/ppc/astest64.d index d8edf05a339..a1a39cc87e0 100644 --- a/gas/testsuite/gas/ppc/astest64.d +++ b/gas/testsuite/gas/ppc/astest64.d @@ -49,11 +49,11 @@ Disassembly of section \.text: 58: 00 00 00 00 \.long 0x0 58: R_PPC64_ADDR32 z 5c: ff ff ff fc fnmsub f31,f31,f31,f31 - 5c: R_PPC64_ADDR32 x\+0xfffffffffffffffc + 5c: R_PPC64_ADDR32 x-0x4 60: 00 00 00 00 \.long 0x0 60: R_PPC64_ADDR32 \.data 64: ff ff ff fc fnmsub f31,f31,f31,f31 - 64: R_PPC64_ADDR32 z\+0xfffffffffffffffc + 64: R_PPC64_ADDR32 z-0x4 68: ff ff ff a4 \.long 0xffffffa4 6c: ff ff ff a4 \.long 0xffffffa4 70: 00 00 00 00 \.long 0x0 diff --git a/gas/testsuite/gas/ppc/test1elf32.d b/gas/testsuite/gas/ppc/test1elf32.d index 2e76061e849..80cc6673318 100644 --- a/gas/testsuite/gas/ppc/test1elf32.d +++ b/gas/testsuite/gas/ppc/test1elf32.d @@ -79,7 +79,7 @@ Disassembly of section \.data: 0+000c : c: ff ff ff fc fnmsub f31,f31,f31,f31 - c: R_PPC_REL32 jk\+0xf+fffc + c: R_PPC_REL32 jk-0x4 0+0010 : 10: 00 00 00 00 \.long 0x0 diff --git a/gas/testsuite/gas/ppc/test1elf64.d b/gas/testsuite/gas/ppc/test1elf64.d index 8ea8230aae9..33fb6db5870 100644 --- a/gas/testsuite/gas/ppc/test1elf64.d +++ b/gas/testsuite/gas/ppc/test1elf64.d @@ -114,7 +114,7 @@ Disassembly of section \.data: 0000000000000014 : 14: ff ff ff fc fnmsub f31,f31,f31,f31 - 14: R_PPC64_REL32 jk\+0xfffffffffffffffc + 14: R_PPC64_REL32 jk-0x4 0000000000000018 : 18: 00 00 00 00 \.long 0x0 diff --git a/gas/testsuite/gas/sparc/reloc64.d b/gas/testsuite/gas/sparc/reloc64.d index 07e2a103c24..d33f9013eac 100644 --- a/gas/testsuite/gas/sparc/reloc64.d +++ b/gas/testsuite/gas/sparc/reloc64.d @@ -35,13 +35,13 @@ Disassembly of section .text: 44: R_SPARC_LO10 .text 48: 01 00 00 00 nop 4c: 03 00 00 00 sethi %hi\((0x|)0\), %g1 - 4c: R_SPARC_HH22 .text\+0xfedcba9876543210 + 4c: R_SPARC_HH22 .text\-0x123456789abcdf0 50: 82 10 60 00 mov %g1, %g1 ! 0 - 50: R_SPARC_HM10 .text\+0xfedcba9876543210 + 50: R_SPARC_HM10 .text\-0x123456789abcdf0 54: 05 00 00 00 sethi %hi\((0x|)0\), %g2 - 54: R_SPARC_LM22 .text\+0xfedcba9876543210 + 54: R_SPARC_LM22 .text\-0x123456789abcdf0 58: 84 10 60 00 mov %g1, %g2 - 58: R_SPARC_LO10 .text\+0xfedcba9876543210 + 58: R_SPARC_LO10 .text\-0x123456789abcdf0 5c: 01 00 00 00 nop 60: 03 2a 61 d9 sethi %hi\(0xa9876400\), %g1 64: 82 10 61 43 or %g1, 0x143, %g1.* @@ -70,9 +70,9 @@ Disassembly of section .text: a0: R_SPARC_LOX10 .text a4: 01 00 00 00 nop a8: 03 00 00 00 sethi %hi\((0x|)0\), %g1 - a8: R_SPARC_HIX22 .text\+0xffffffff76543210 + a8: R_SPARC_HIX22 .text-0x89abcdf0 ac: 82 18 60 00 xor %g1, 0, %g1 - ac: R_SPARC_LOX10 .text\+0xffffffff76543210 + ac: R_SPARC_LOX10 .text-0x89abcdf0 b0: 01 00 00 00 nop b4: 03 00 00 00 sethi %hi\((0x|)0\), %g1 b4: R_SPARC_H34 .text\+0xa9876543210