(tc_pe_dwarf2_emit_offset): New function.
* config/tc-i386.h (O_secrel): Define as O_md1.
(TC_DWARF2_EMIT_OFFSET): Define.
+2004-10-18 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
+
+ * config/tc-i386.c (O_secrel): Delete.
+ (tc_pe_dwarf2_emit_offset): New function.
+ * config/tc-i386.h (O_secrel): Define as O_md1.
+ (TC_DWARF2_EMIT_OFFSET): Define.
+
2004-10-18 Nick Clifton <nickc@redhat.com>
* config/tc-xstormy16.c (xstormy16_cons_fix_new): Accept and
#ifdef TE_PE
-#define O_secrel (O_max + 1)
-
void
x86_pe_cons_fix_new (frag, off, len, exp)
fragS *frag;
return -1;
}
+
+#ifdef TE_PE
+void
+tc_pe_dwarf2_emit_offset (symbolS *symbol, unsigned int size)
+{
+ expressionS expr;
+
+ expr.X_op = O_secrel;
+ expr.X_add_symbol = symbol;
+ expr.X_add_number = 0;
+ emit_expr (&expr, size);
+}
+#endif
#define md_elf_section_type(str,len) i386_elf_section_type (str, len)
extern int i386_elf_section_type PARAMS ((const char *, size_t len));
+#ifdef TE_PE
+
+#define O_secrel O_md1
+
+#define TC_DWARF2_EMIT_OFFSET tc_pe_dwarf2_emit_offset
+void tc_pe_dwarf2_emit_offset (symbolS *, unsigned int);
+
+#endif /* TE_PE */
+
#endif /* TC_I386 */