diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2005-04-07 00:53:22 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2005-04-07 00:53:22 +0000 |
commit | dbbaec2634e74fc0a118c81e270c5de53685ab2c (patch) | |
tree | 025b272c93a2d66587cf49ff17e143ceb35ad95e /gas/config | |
parent | 7a46909329265245655424a98ede537d67fa4171 (diff) | |
download | gdb-dbbaec2634e74fc0a118c81e270c5de53685ab2c.zip gdb-dbbaec2634e74fc0a118c81e270c5de53685ab2c.tar.gz gdb-dbbaec2634e74fc0a118c81e270c5de53685ab2c.tar.bz2 |
gas/
2005-04-06 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (tc_gen_reloc): Don't turn
BFD_RELOC_X86_64_32S into BFD_RELOC_32.
gas/testsuite/
2005-04-06 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/x86-64-pcrel.s: Test R_X86_64_32S.
* gas/i386/x86-64-pcrel.d: Updated.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-i386.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 486b0cf..83e2567 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -5380,6 +5380,13 @@ tc_gen_reloc (section, fixp) #endif code = fixp->fx_r_type; break; + case BFD_RELOC_X86_64_32S: + if (!fixp->fx_pcrel) + { + /* Don't turn BFD_RELOC_X86_64_32S into BFD_RELOC_32. */ + code = fixp->fx_r_type; + break; + } default: if (fixp->fx_pcrel) { |