Index: bfd/elf32-crx.c |
diff --git a/bfd/elf32-crx.c b/bfd/elf32-crx.c |
index d48932d5e00b0aae37b7ee8e0ef3eb75b331a6a8..940f357028ee4b32950bcdd27452e2939362e870 100644 |
--- a/bfd/elf32-crx.c |
+++ b/bfd/elf32-crx.c |
@@ -1,5 +1,5 @@ |
/* BFD back-end for National Semiconductor's CRX ELF |
- Copyright 2004, 2005, 2006, 2007, 2009, 2010 |
+ Copyright 2004, 2005, 2006, 2007, 2009, 2010, 2012 |
Free Software Foundation, Inc. |
Written by Tomer Levi, NSC, Israel. |
@@ -754,7 +754,7 @@ elf32_crx_get_relocated_section_contents (bfd *output_bfd, |
bfd_size_type amt; |
internal_relocs = (_bfd_elf_link_read_relocs |
- (input_bfd, input_section, (PTR) NULL, |
+ (input_bfd, input_section, NULL, |
(Elf_Internal_Rela *) NULL, FALSE)); |
if (internal_relocs == NULL) |
goto error_return; |
@@ -873,9 +873,9 @@ elf32_crx_relocate_section (bfd *output_bfd, struct bfd_link_info *info, |
unresolved_reloc, warned); |
} |
- if (sec != NULL && elf_discarded_section (sec)) |
+ if (sec != NULL && discarded_section (sec)) |
RELOC_AGAINST_DISCARDED_SECTION (info, input_bfd, input_section, |
- rel, relend, howto, contents); |
+ rel, 1, relend, howto, 0, contents); |
if (info->relocatable) |
continue; |
@@ -984,7 +984,7 @@ elf32_crx_relax_section (bfd *abfd, asection *sec, |
/* Get a copy of the native relocations. */ |
internal_relocs = (_bfd_elf_link_read_relocs |
- (abfd, sec, (PTR) NULL, (Elf_Internal_Rela *) NULL, |
+ (abfd, sec, NULL, (Elf_Internal_Rela *) NULL, |
link_info->keep_memory)); |
if (internal_relocs == NULL) |
goto error_return; |