* config/tc-i386.c (md_pseudo_table <file>): Warning fix.
(BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD. (md_apply_fix3): Formatting. Remove redundant test. (tc_gen_reloc): Remove redundant code. (tc_i386_force_relocation): Delete. Movy body of function to.. * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
This commit is contained in:
parent
ad42262f8f
commit
c66827056d
|
@ -1,3 +1,12 @@
|
||||||
|
2002-07-09 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* config/tc-i386.c (md_pseudo_table <file>): Warning fix.
|
||||||
|
(BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
|
||||||
|
(md_apply_fix3): Formatting. Remove redundant test.
|
||||||
|
(tc_gen_reloc): Remove redundant code.
|
||||||
|
(tc_i386_force_relocation): Delete. Movy body of function to..
|
||||||
|
* config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
|
||||||
|
|
||||||
2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
|
2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
|
||||||
|
|
||||||
* configure.in: Add hppa-*-openbsd* target, change
|
* configure.in: Add hppa-*-openbsd* target, change
|
||||||
|
|
|
@ -435,7 +435,7 @@ const pseudo_typeS md_pseudo_table[] =
|
||||||
{"code64", set_code_flag, CODE_64BIT},
|
{"code64", set_code_flag, CODE_64BIT},
|
||||||
{"intel_syntax", set_intel_syntax, 1},
|
{"intel_syntax", set_intel_syntax, 1},
|
||||||
{"att_syntax", set_intel_syntax, 0},
|
{"att_syntax", set_intel_syntax, 0},
|
||||||
{"file", dwarf2_directive_file, 0},
|
{"file", (void (*) PARAMS ((int))) dwarf2_directive_file, 0},
|
||||||
{"loc", dwarf2_directive_loc, 0},
|
{"loc", dwarf2_directive_loc, 0},
|
||||||
{0, 0, 0}
|
{0, 0, 0}
|
||||||
};
|
};
|
||||||
|
@ -1130,21 +1130,6 @@ pt (t)
|
||||||
|
|
||||||
#endif /* DEBUG386 */
|
#endif /* DEBUG386 */
|
||||||
|
|
||||||
int
|
|
||||||
tc_i386_force_relocation (fixp)
|
|
||||||
struct fix *fixp;
|
|
||||||
{
|
|
||||||
#ifdef BFD_ASSEMBLER
|
|
||||||
if (fixp->fx_r_type == BFD_RELOC_VTABLE_INHERIT
|
|
||||||
|| fixp->fx_r_type == BFD_RELOC_VTABLE_ENTRY)
|
|
||||||
return 1;
|
|
||||||
return 0;
|
|
||||||
#else
|
|
||||||
/* For COFF. */
|
|
||||||
return fixp->fx_r_type == 7;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef BFD_ASSEMBLER
|
#ifdef BFD_ASSEMBLER
|
||||||
static bfd_reloc_code_real_type reloc
|
static bfd_reloc_code_real_type reloc
|
||||||
PARAMS ((int, int, int, bfd_reloc_code_real_type));
|
PARAMS ((int, int, int, bfd_reloc_code_real_type));
|
||||||
|
@ -1235,8 +1220,10 @@ tc_i386_fix_adjustable (fixP)
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#define reloc(SIZE,PCREL,SIGN,OTHER) 0
|
#define reloc(SIZE,PCREL,SIGN,OTHER) 0
|
||||||
|
#define BFD_RELOC_8 0
|
||||||
#define BFD_RELOC_16 0
|
#define BFD_RELOC_16 0
|
||||||
#define BFD_RELOC_32 0
|
#define BFD_RELOC_32 0
|
||||||
|
#define BFD_RELOC_8_PCREL 0
|
||||||
#define BFD_RELOC_16_PCREL 0
|
#define BFD_RELOC_16_PCREL 0
|
||||||
#define BFD_RELOC_32_PCREL 0
|
#define BFD_RELOC_32_PCREL 0
|
||||||
#define BFD_RELOC_386_PLT32 0
|
#define BFD_RELOC_386_PLT32 0
|
||||||
|
@ -4617,7 +4604,7 @@ md_apply_fix3 (fixP, valP, seg)
|
||||||
#endif /* defined (BFD_ASSEMBLER) && !defined (TE_Mach) */
|
#endif /* defined (BFD_ASSEMBLER) && !defined (TE_Mach) */
|
||||||
|
|
||||||
/* Are we finished with this relocation now? */
|
/* Are we finished with this relocation now? */
|
||||||
if (fixP->fx_addsy == NULL && fixP->fx_pcrel == 0)
|
if (fixP->fx_addsy == NULL)
|
||||||
fixP->fx_done = 1;
|
fixP->fx_done = 1;
|
||||||
#ifdef BFD_ASSEMBLER
|
#ifdef BFD_ASSEMBLER
|
||||||
else if (use_rela_relocations)
|
else if (use_rela_relocations)
|
||||||
|
@ -5136,9 +5123,6 @@ tc_gen_reloc (section, fixp)
|
||||||
if (fixp->fx_r_type == BFD_RELOC_VTABLE_ENTRY)
|
if (fixp->fx_r_type == BFD_RELOC_VTABLE_ENTRY)
|
||||||
rel->address = fixp->fx_offset;
|
rel->address = fixp->fx_offset;
|
||||||
|
|
||||||
if (fixp->fx_pcrel)
|
|
||||||
rel->addend = fixp->fx_addnumber;
|
|
||||||
else
|
|
||||||
rel->addend = 0;
|
rel->addend = 0;
|
||||||
}
|
}
|
||||||
/* Use the rela in 64bit mode. */
|
/* Use the rela in 64bit mode. */
|
||||||
|
|
|
@ -171,8 +171,15 @@ extern void x86_cons_fix_new
|
||||||
PARAMS ((fragS *, unsigned int, unsigned int, expressionS *));
|
PARAMS ((fragS *, unsigned int, unsigned int, expressionS *));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define TC_FORCE_RELOCATION(fixp) tc_i386_force_relocation(fixp)
|
#ifdef BFD_ASSEMBLER
|
||||||
extern int tc_i386_force_relocation PARAMS ((struct fix *));
|
#define TC_FORCE_RELOCATION(FIXP) \
|
||||||
|
((FIXP)->fx_r_type == BFD_RELOC_VTABLE_INHERIT \
|
||||||
|
|| (FIXP)->fx_r_type == BFD_RELOC_VTABLE_ENTRY)
|
||||||
|
#else
|
||||||
|
/* For COFF. */
|
||||||
|
#define TC_FORCE_RELOCATION(FIXP) \
|
||||||
|
((FIXP)->fx_r_type == 7)
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef BFD_ASSEMBLER
|
#ifdef BFD_ASSEMBLER
|
||||||
#define NO_RELOC BFD_RELOC_NONE
|
#define NO_RELOC BFD_RELOC_NONE
|
||||||
|
|
Loading…
Reference in New Issue