diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-05-12 12:34:37 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-05-12 12:34:37 +0000 |
commit | 56e63005cd68388efb769b08c8154c385a5345a3 (patch) | |
tree | c33a95a2ee2c073a97242ea1ce8250fbdd0c74d1 /gas/config | |
parent | 70af3797738f176ecbca8fa50135e127fc9793ec (diff) | |
download | gdb-56e63005cd68388efb769b08c8154c385a5345a3.zip gdb-56e63005cd68388efb769b08c8154c385a5345a3.tar.gz gdb-56e63005cd68388efb769b08c8154c385a5345a3.tar.bz2 |
Remove x32 addend overflow for BFD_RELOC_64
gas/
* config/tc-i386.c (tc_gen_reloc): Remove x32 addend overflow
for BFD_RELOC_64.
gas/testsuite/
* gas/i386/ilp32/ilp32.exp: Don't run reloc64-inval.
* gas/i386/ilp32/reloc64.s: Add test for -4294967295 addend.
* gas/i386/ilp32/reloc64.d: Updated.
* gas/i386/ilp32/reloc64-inval.l: Removed.
* gas/i386/ilp32/reloc64-inval.s: Likewise.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-i386.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index e33fb6c..ccf54bc 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -9173,25 +9173,6 @@ tc_gen_reloc (asection *section ATTRIBUTE_UNUSED, fixS *fixp) if (disallow_64bit_reloc) switch (code) { - case BFD_RELOC_64: - /* Check addend overflow. */ - if (!fits_in_signed_long (fixp->fx_offset)) - { - bfd_signed_vma addend = fixp->fx_offset; - if (addend < 0) - as_bad_where (fixp->fx_file, fixp->fx_line, - _("cannot represent relocation %s with " - "addend -0x%" BFD_VMA_FMT "x in x32 " - "mode"), - bfd_get_reloc_code_name (code), -addend); - else - as_bad_where (fixp->fx_file, fixp->fx_line, - _("cannot represent relocation %s with " - "addend 0x%" BFD_VMA_FMT "x in x32 " - "mode"), - bfd_get_reloc_code_name (code), addend); - } - break; case BFD_RELOC_X86_64_DTPOFF64: case BFD_RELOC_X86_64_TPOFF64: case BFD_RELOC_64_PCREL: |