+2005-04-13 Jan Beulich <jbeulich@novell.com>
+ H.J. Lu <hongjiu.lu@intel.com>
+
+ * config/tc-i386.c (md_apply_fix3): Also handle BFD_RELOC_X86_64_32S.
+ (tc_gen_reloc): Handle BFD_RELOC_X86_64_32S specially.
+
2005-04-12 Alan Modra <amodra@bigpond.net.au>
PR gas/827
break;
case BFD_RELOC_32:
+ case BFD_RELOC_X86_64_32S:
fixP->fx_r_type = BFD_RELOC_32_PCREL;
break;
case BFD_RELOC_16:
case BFD_RELOC_386_TLS_GOTIE:
case BFD_RELOC_386_TLS_LE_32:
case BFD_RELOC_386_TLS_LE:
- case BFD_RELOC_X86_64_32S:
case BFD_RELOC_X86_64_TLSGD:
case BFD_RELOC_X86_64_TLSLD:
case BFD_RELOC_X86_64_DTPOFF32:
#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)
{
+2005-04-13 Jan Beulich <jbeulich@novell.com>
+ H.J. Lu <hongjiu.lu@intel.com>
+
+ * gas/i386/x86-64-pcrel.[sd]: New.
+ * gas/i386/i386.exp: Run new test.
+
2005-03-23 Alan Modra <amodra@bigpond.net.au>
* gas/elf/section5.s: Don't start directives in first column.
run_dump_test "x86_64"
run_dump_test "x86-64-addr32"
run_dump_test "x86-64-opcode"
+ run_dump_test "x86-64-pcrel"
run_dump_test "x86-64-rip"
run_list_test "x86-64-inval" "-al"