diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2011-02-25 19:19:45 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2011-02-25 19:19:45 +0000 |
commit | f2d8a97c280123152204506e38c84e4e7dc7825b (patch) | |
tree | b6f22a293ac2413db16e5bed2d83e9e6d6872297 /gas/config | |
parent | c82c0b55e7f5182e3822f3878b9bc67a241d4f21 (diff) | |
download | gdb-f2d8a97c280123152204506e38c84e4e7dc7825b.zip gdb-f2d8a97c280123152204506e38c84e4e7dc7825b.tar.gz gdb-f2d8a97c280123152204506e38c84e4e7dc7825b.tar.bz2 |
Don't sign-checking 4-byte relocations for x32.
gas/
2011-02-25 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (reloc): Don't sign-checking 4-byte
relocations if 64bit relocations aren't allowed.
gas/testsuite/
2011-02-25 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/ilp32/ilp32.exp: Run reloc64.
* gas/i386/ilp32/reloc64.s: Allow TLS relocations with 32bit
register destinations.
* gas/i386/ilp32/reloc64.d: Updated.
* gas/i386/ilp32/reloc64.l: New.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-i386.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index c4c34a1..5cc8219 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -2591,7 +2591,7 @@ reloc (unsigned int size, } /* Sign-checking 4-byte relocations in 16-/32-bit code is pointless. */ - if (size == 4 && flag_code != CODE_64BIT) + if (size == 4 && (flag_code != CODE_64BIT || disallow_64bit_reloc)) sign = -1; rel = bfd_reloc_type_lookup (stdoutput, other); |