From 943686fa047dedb5b840cbc04a7384254fb654b7 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Mon, 2 Dec 1996 07:44:50 +0000 Subject: [PATCH] * elf32-mn10300.c (mn10300_info_howto): Renamed from mn10300-Info_howto_rel. Tweak reloc argument to be an Elf32_Internal_Rela. (USE_RELA): Define instead of USE_REL. (elf_info_to_howto, elf_info_howto_rel): Corresponding changes. --- bfd/ChangeLog | 8 ++++++++ bfd/elf32-mn10300.c | 18 +++++++++--------- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 9094309d3cd..3f47b6aa62a 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,11 @@ +Mon Dec 2 00:39:24 1996 Jeffrey A Law (law@cygnus.com) + + * elf32-mn10300.c (mn10300_info_howto): Renamed from + mn10300-Info_howto_rel. Tweak reloc argument to be an + Elf32_Internal_Rela. + (USE_RELA): Define instead of USE_REL. + (elf_info_to_howto, elf_info_howto_rel): Corresponding changes. + Sun Dec 1 00:18:59 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) * configure.in, configure: Handle mips*-sgi-irix6*. diff --git a/bfd/elf32-mn10300.c b/bfd/elf32-mn10300.c index 659a11dae04..6190f5d808e 100644 --- a/bfd/elf32-mn10300.c +++ b/bfd/elf32-mn10300.c @@ -24,15 +24,15 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ static reloc_howto_type *bfd_elf32_bfd_reloc_type_lookup PARAMS ((bfd *abfd, bfd_reloc_code_real_type code)); -static void mn10300_info_to_howto_rel - PARAMS ((bfd *, arelent *, Elf32_Internal_Rel *)); +static void mn10300_info_to_howto + PARAMS ((bfd *, arelent *, Elf32_Internal_Rela *)); static bfd_reloc_status_type bfd_elf32_mn10300_reloc PARAMS ((bfd *, arelent *, asymbol *, PTR, asection *, bfd *, char **)); -/* Try to minimize the amount of space occupied by relocation tables - on the ROM (not that the ROM won't be swamped by other ELF overhead). */ -#define USE_REL +/* We have to use RELA instructions since md_apply_fix3 in the assembler + does absolutely nothing. */ +#define USE_RELA enum reloc_type { @@ -240,10 +240,10 @@ bfd_elf32_bfd_reloc_type_lookup (abfd, code) /* Set the howto pointer for an MN10300 ELF reloc. */ static void -mn10300_info_to_howto_rel (abfd, cache_ptr, dst) +mn10300_info_to_howto (abfd, cache_ptr, dst) bfd *abfd; arelent *cache_ptr; - Elf32_Internal_Rel *dst; + Elf32_Internal_Rela *dst; { unsigned int r_type; @@ -353,7 +353,7 @@ bfd_elf32_mn10300_reloc (abfd, reloc, symbol, data, isection, obfd, err) #define ELF_MACHINE_CODE EM_CYGNUS_MN10300 #define ELF_MAXPAGESIZE 0x1000 -#define elf_info_to_howto 0 -#define elf_info_to_howto_rel mn10300_info_to_howto_rel +#define elf_info_to_howto mn10300_info_to_howto +#define elf_info_to_howto_rel 0 #include "elf32-target.h" -- 2.30.2