From: Daniel Jacobowitz Date: Sat, 11 May 2002 17:13:41 +0000 (+0000) Subject: 2002-05-11 Ralf Corsepius X-Git-Tag: binutils-2_12_1~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f6ec03b929628a60e2a7a41168e85d37bc6f9899;p=thirdparty%2Fbinutils-gdb.git 2002-05-11 Ralf Corsepius Daniel Jacobowitz * coff-sh.c (sh_reloc_map): Map to R_SH_IMM32 for non-PE. Don't map BFD_RELOC_RVA. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 4b3c8df20ef..eb836c3b2e3 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2002-05-11 Ralf Corsepius + Daniel Jacobowitz + + * coff-sh.c (sh_reloc_map): Map to R_SH_IMM32 for non-PE. Don't + map BFD_RELOC_RVA. + 2002-05-09 Alan Modra * elf64-ppc.c (RA_REGISTER_MASK, RA_REGISTER_SHIFT): Delete. diff --git a/bfd/coff-sh.c b/bfd/coff-sh.c index ae739968f75..d1dc4fdbcf7 100644 --- a/bfd/coff-sh.c +++ b/bfd/coff-sh.c @@ -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. */