2002-05-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
Daniel Jacobowitz <drow@mvista.com> * coff-sh.c (sh_reloc_map): Map to R_SH_IMM32 for non-PE. Don't map BFD_RELOC_RVA.
This commit is contained in:
parent
8513dd2d37
commit
a9a32010d5
2 changed files with 16 additions and 1 deletions
|
@ -1,4 +1,10 @@
|
|||
2002-05-1 Federico G. Schwindt <fgsch@olimpo.com.br>
|
||||
2002-05-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
Daniel Jacobowitz <drow@mvista.com>
|
||||
|
||||
* coff-sh.c (sh_reloc_map): Map to R_SH_IMM32 for non-PE. Don't
|
||||
map BFD_RELOC_RVA.
|
||||
|
||||
2002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br>
|
||||
|
||||
* config.bfd (alpha*-*-openbsd*, sparc64*-*-openbsd*,
|
||||
hppa*-*-openbsd*): New targets.
|
||||
|
|
|
@ -473,6 +473,7 @@ struct shcoff_reloc_map
|
|||
unsigned char shcoff_reloc_val;
|
||||
};
|
||||
|
||||
#ifdef COFF_WITH_PE
|
||||
/* An array mapping BFD reloc codes to SH PE relocs. */
|
||||
static const struct shcoff_reloc_map sh_reloc_map[] =
|
||||
{
|
||||
|
@ -480,6 +481,14 @@ static const struct shcoff_reloc_map sh_reloc_map[] =
|
|||
{ BFD_RELOC_RVA, R_SH_IMAGEBASE },
|
||||
{ BFD_RELOC_CTOR, R_SH_IMM32CE },
|
||||
};
|
||||
#else
|
||||
/* An array mapping BFD reloc codes to SH PE relocs. */
|
||||
static const struct shcoff_reloc_map sh_reloc_map[] =
|
||||
{
|
||||
{ BFD_RELOC_32, R_SH_IMM32 },
|
||||
{ BFD_RELOC_CTOR, R_SH_IMM32 },
|
||||
};
|
||||
#endif
|
||||
|
||||
/* Given a BFD reloc code, return the howto structure for the
|
||||
corresponding SH PE reloc. */
|
||||
|
|
Loading…
Add table
Reference in a new issue