From 69732e34293d7bec79dde69c0de61fb9e492fe3a Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 14 May 2012 02:39:57 +0000 Subject: 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. --- gas/testsuite/gas/i386/ilp32/mixed-mode-reloc64.d | 6 +++--- gas/testsuite/gas/i386/ilp32/reloc64.d | 24 +++++++++++------------ gas/testsuite/gas/i386/mixed-mode-reloc64.d | 6 +++--- gas/testsuite/gas/i386/reloc64.d | 22 ++++++++++----------- 4 files changed, 29 insertions(+), 29 deletions(-) (limited to 'gas/testsuite/gas/i386') diff --git a/gas/testsuite/gas/i386/ilp32/mixed-mode-reloc64.d b/gas/testsuite/gas/i386/ilp32/mixed-mode-reloc64.d index c54b7d3adf..a48c5028d9 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 c2fd292e3c..5d3df9a19b 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_GOT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.*[ ]+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 dc50e43576..9b82cb5949 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 5c14019d4e..b4780d4a25 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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