@@ -587,9 +587,8 @@ mn10200_elf_relax_section (bfd *abfd,
symtab_hdr = &elf_symtab_hdr (abfd);
/* Get a copy of the native relocations. */
- internal_relocs = (_bfd_elf_link_read_relocs
- (abfd, sec, NULL, (Elf_Internal_Rela *) NULL,
- link_info->keep_memory));
+ internal_relocs = _bfd_elf_link_read_relocs (abfd, sec, NULL, NULL,
+ link_info->keep_memory);
if (internal_relocs == NULL)
goto error_return;
@@ -1310,9 +1309,8 @@ mn10200_elf_get_relocated_section_contents
asection **secpp;
bfd_size_type amt;
- internal_relocs = (_bfd_elf_link_read_relocs
- (input_bfd, input_section, NULL,
- (Elf_Internal_Rela *) NULL, false));
+ internal_relocs = _bfd_elf_link_read_relocs (input_bfd, input_section,
+ NULL, NULL, false);
if (internal_relocs == NULL)
goto error_return;
@@ -2715,9 +2715,9 @@ mn10300_elf_relax_section (bfd *abfd,
&& section->reloc_count != 0)
{
/* Get a copy of the native relocations. */
- internal_relocs = _bfd_elf_link_read_relocs (input_bfd, section,
- NULL, NULL,
- link_info->keep_memory);
+ internal_relocs
+ = _bfd_elf_link_read_relocs (input_bfd, section, NULL, NULL,
+ link_info->keep_memory);
if (internal_relocs == NULL)
goto error_return;
@@ -3042,9 +3042,9 @@ mn10300_elf_relax_section (bfd *abfd,
if (section->reloc_count != 0)
{
/* Get a copy of the native relocations. */
- internal_relocs = _bfd_elf_link_read_relocs (input_bfd, section,
- NULL, NULL,
- link_info->keep_memory);
+ internal_relocs
+ = _bfd_elf_link_read_relocs (input_bfd, section, NULL, NULL,
+ link_info->keep_memory);
if (internal_relocs == NULL)
goto error_return;
}
@@ -3003,7 +3003,7 @@ arc_elf_relax_section (bfd *abfd, asection *sec,
/* Get a copy of the native relocations. */
internal_relocs = _bfd_elf_link_read_relocs (abfd, sec, NULL, NULL,
- link_info->keep_memory);
+ link_info->keep_memory);
if (internal_relocs == NULL)
goto error_return;
@@ -6470,8 +6470,8 @@ elf32_arm_size_stubs (bfd *output_bfd,
/* Get the relocs. */
internal_relocs
- = _bfd_elf_link_read_relocs (input_bfd, section, NULL,
- NULL, info->keep_memory);
+ = _bfd_elf_link_read_relocs (input_bfd, section, NULL, NULL,
+ info->keep_memory);
if (internal_relocs == NULL)
goto error_ret_free_local;
@@ -4398,8 +4398,7 @@ avr_elf32_load_records_from_section (bfd *abfd, asection *sec)
/* Load the relocations for the '.avr.prop' section if there are any, and
sort them. */
- internal_relocs = (_bfd_elf_link_read_relocs
- (abfd, sec, NULL, NULL, false));
+ internal_relocs = _bfd_elf_link_read_relocs (abfd, sec, NULL, NULL, false);
if (internal_relocs)
qsort (internal_relocs, sec->reloc_count,
sizeof (Elf_Internal_Rela), internal_reloc_compare);
@@ -5302,9 +5302,8 @@ bfd_bfin_elf32_create_embedded_relocs (bfd *abfd,
symtab_hdr = &elf_symtab_hdr (abfd);
/* Get a copy of the native relocations. */
- internal_relocs = (_bfd_elf_link_read_relocs
- (abfd, datasec, NULL, (Elf_Internal_Rela *) NULL,
- info->keep_memory));
+ internal_relocs = _bfd_elf_link_read_relocs (abfd, datasec, NULL, NULL,
+ info->keep_memory);
if (internal_relocs == NULL)
goto error_return;
@@ -2682,8 +2682,8 @@ bfd_cr16_elf32_create_embedded_relocs (bfd *abfd,
symtab_hdr = &elf_symtab_hdr (abfd);
/* Get a copy of the native relocations. */
- internal_relocs = (_bfd_elf_link_read_relocs
- (abfd, datasec, NULL, NULL, info->keep_memory));
+ internal_relocs = _bfd_elf_link_read_relocs (abfd, datasec, NULL, NULL,
+ info->keep_memory);
if (internal_relocs == NULL)
goto error_return;
@@ -761,9 +761,8 @@ elf32_crx_get_relocated_section_contents
asection **secpp;
bfd_size_type amt;
- internal_relocs = (_bfd_elf_link_read_relocs
- (input_bfd, input_section, NULL,
- (Elf_Internal_Rela *) NULL, false));
+ internal_relocs = _bfd_elf_link_read_relocs (input_bfd, input_section,
+ NULL, NULL, false);
if (internal_relocs == NULL)
goto error_return;
@@ -985,9 +984,8 @@ elf32_crx_relax_section (bfd *abfd, asection *sec,
symtab_hdr = &elf_symtab_hdr (abfd);
/* Get a copy of the native relocations. */
- internal_relocs = (_bfd_elf_link_read_relocs
- (abfd, sec, NULL, (Elf_Internal_Rela *) NULL,
- link_info->keep_memory));
+ internal_relocs = _bfd_elf_link_read_relocs (abfd, sec, NULL, NULL,
+ link_info->keep_memory);
if (internal_relocs == NULL)
goto error_return;
@@ -3475,10 +3475,9 @@ elf32_csky_size_stubs (bfd *output_bfd,
continue;
/* Get the relocs. */
- internal_relocs = _bfd_elf_link_read_relocs (input_bfd,
- section,
- NULL, NULL,
- info->keep_memory);
+ internal_relocs
+ = _bfd_elf_link_read_relocs (input_bfd, section, NULL, NULL,
+ info->keep_memory);
if (internal_relocs == NULL)
goto error_ret_free_local;
@@ -712,9 +712,8 @@ elf32_h8_relax_section (bfd *abfd, asection *sec,
symtab_hdr = &elf_symtab_hdr (abfd);
/* Get a copy of the native relocations. */
- internal_relocs = (_bfd_elf_link_read_relocs
- (abfd, sec, NULL, (Elf_Internal_Rela *) NULL,
- link_info->keep_memory));
+ internal_relocs = _bfd_elf_link_read_relocs (abfd, sec, NULL, NULL,
+ link_info->keep_memory);
if (internal_relocs == NULL)
goto error_return;
@@ -1639,9 +1638,8 @@ elf32_h8_get_relocated_section_contents
Elf_Internal_Sym *isym, *isymend;
bfd_size_type amt;
- internal_relocs = (_bfd_elf_link_read_relocs
- (input_bfd, input_section, NULL,
- (Elf_Internal_Rela *) NULL, false));
+ internal_relocs = _bfd_elf_link_read_relocs (input_bfd, input_section,
+ NULL, NULL, false);
if (internal_relocs == NULL)
goto error_return;
@@ -2102,7 +2102,8 @@ lm32_elf_late_size_sections (struct bfd_link_info *info)
Elf_Internal_Rela *internal_relocs, *end;
internal_relocs = elf_section_data (s)->relocs;
if (internal_relocs == NULL)
- internal_relocs = (_bfd_elf_link_read_relocs (ibfd, s, NULL, NULL, false));
+ internal_relocs
+ = _bfd_elf_link_read_relocs (ibfd, s, NULL, NULL, false);
if (internal_relocs != NULL)
{
end = internal_relocs + s->reloc_count;
@@ -1512,9 +1512,8 @@ m32c_elf_relax_section (bfd *abfd,
}
/* Get a copy of the native relocations. */
- internal_relocs = (_bfd_elf_link_read_relocs
- (abfd, sec, NULL, (Elf_Internal_Rela *) NULL,
- link_info->keep_memory));
+ internal_relocs = _bfd_elf_link_read_relocs (abfd, sec, NULL, NULL,
+ link_info->keep_memory);
if (internal_relocs == NULL)
goto error_return;
if (! link_info->keep_memory)
@@ -718,9 +718,8 @@ m68hc11_elf_relax_section (bfd *abfd, asection *sec,
symtab_hdr = &elf_symtab_hdr (abfd);
/* Get a copy of the native relocations. */
- internal_relocs = (_bfd_elf_link_read_relocs
- (abfd, sec, NULL, (Elf_Internal_Rela *) NULL,
- link_info->keep_memory));
+ internal_relocs = _bfd_elf_link_read_relocs (abfd, sec, NULL, NULL,
+ link_info->keep_memory);
if (internal_relocs == NULL)
goto error_return;
if (! link_info->keep_memory)
@@ -425,8 +425,7 @@ elf32_m68hc11_size_stubs (bfd *output_bfd, bfd *stub_bfd,
/* Get the relocs. */
internal_relocs
- = _bfd_elf_link_read_relocs (input_bfd, section, NULL,
- (Elf_Internal_Rela *) NULL,
+ = _bfd_elf_link_read_relocs (input_bfd, section, NULL, NULL,
info->keep_memory);
if (internal_relocs == NULL)
goto error_ret_free_local;
@@ -4391,9 +4391,8 @@ bfd_m68k_elf32_create_embedded_relocs (bfd *abfd, struct bfd_link_info *info,
symtab_hdr = &elf_symtab_hdr (abfd);
/* Get a copy of the native relocations. */
- internal_relocs = (_bfd_elf_link_read_relocs
- (abfd, datasec, NULL, (Elf_Internal_Rela *) NULL,
- info->keep_memory));
+ internal_relocs = _bfd_elf_link_read_relocs (abfd, datasec, NULL, NULL,
+ info->keep_memory);
if (internal_relocs == NULL)
goto error_return;
@@ -1906,7 +1906,8 @@ microblaze_elf_relax_section (bfd *abfd,
goto error_return;
}
- internal_relocs = _bfd_elf_link_read_relocs (abfd, sec, NULL, NULL, link_info->keep_memory);
+ internal_relocs = _bfd_elf_link_read_relocs (abfd, sec, NULL, NULL,
+ link_info->keep_memory);
if (internal_relocs == NULL)
goto error_return;
if (! link_info->keep_memory)
@@ -1990,8 +1990,8 @@ msp430_elf_relax_section (bfd * abfd, asection * sec,
symtab_hdr = &elf_symtab_hdr (abfd);
/* Get a copy of the native relocations. */
- internal_relocs =
- _bfd_elf_link_read_relocs (abfd, sec, NULL, NULL, link_info->keep_memory);
+ internal_relocs = _bfd_elf_link_read_relocs (abfd, sec, NULL, NULL,
+ link_info->keep_memory);
if (internal_relocs == NULL)
goto error_return;
@@ -9320,7 +9320,7 @@ nds32_elf_relax_delete_blanks (bfd *abfd, asection *sec,
/* Relocations MUST be kept in memory, because relaxation adjust them. */
internal_relocs = _bfd_elf_link_read_relocs (abfd, sect, NULL, NULL,
- true /* keep_memory */);
+ true);
irelend = internal_relocs + sect->reloc_count;
blank_t = blank_head;
@@ -12260,7 +12260,7 @@ nds32_elf_relax_section (bfd *abfd, asection *sec,
symtab_hdr = &elf_symtab_hdr (abfd);
/* Relocations MUST be kept in memory, because relaxation adjust them. */
internal_relocs = _bfd_elf_link_read_relocs (abfd, sec, NULL, NULL,
- true /* keep_memory */);
+ true);
if (internal_relocs == NULL)
goto error_return;
@@ -13399,8 +13399,7 @@ elf32_nds32_check_relax_group (bfd *abfd, asection *asec)
do
{
/* Relocations MUST be kept in memory, because relaxation adjust them. */
- relocs = _bfd_elf_link_read_relocs (abfd, asec, NULL, NULL,
- true /* keep_memory */);
+ relocs = _bfd_elf_link_read_relocs (abfd, asec, NULL, NULL, true);
if (relocs == NULL)
break;
@@ -13528,8 +13527,7 @@ elf32_nds32_unify_relax_group (bfd *abfd, asection *asec)
break; /* Hit, the section id has handled. */
/* Relocations MUST be kept in memory, because relaxation adjust them. */
- relocs = _bfd_elf_link_read_relocs (abfd, asec, NULL, NULL,
- true /* keep_memory */);
+ relocs = _bfd_elf_link_read_relocs (abfd, asec, NULL, NULL, true);
if (relocs == NULL)
{
BFD_ASSERT (0); /* feed me */
@@ -13592,8 +13590,7 @@ nds32_elf_unify_tls_model (bfd *inbfd, asection *insec, bfd_byte *incontents,
}
/* Relocations MUST be kept in memory, because relaxation adjust them. */
- internal_relocs = _bfd_elf_link_read_relocs (inbfd, insec, NULL, NULL,
- true /* keep_memory */);
+ internal_relocs = _bfd_elf_link_read_relocs (inbfd, insec, NULL, NULL, true);
if (internal_relocs == NULL)
goto error_return;
@@ -2172,9 +2172,8 @@ rl78_elf_relax_section (bfd *abfd,
}
/* Get a copy of the native relocations. */
- internal_relocs = (_bfd_elf_link_read_relocs
- (abfd, sec, NULL, (Elf_Internal_Rela *) NULL,
- link_info->keep_memory));
+ internal_relocs = _bfd_elf_link_read_relocs (abfd, sec, NULL, NULL,
+ link_info->keep_memory);
if (internal_relocs == NULL)
goto error_return;
if (! link_info->keep_memory)
@@ -2139,8 +2139,7 @@ elf32_rx_relax_section (bfd *abfd,
because we are going to walk over them multiple times, adjusting them
as bytes are deleted from the section, and with this relaxation
function itself being called multiple times on the same section... */
- internal_relocs = _bfd_elf_link_read_relocs
- (abfd, sec, NULL, (Elf_Internal_Rela *) NULL, true);
+ internal_relocs = _bfd_elf_link_read_relocs (abfd, sec, NULL, NULL, true);
if (internal_relocs == NULL)
goto error_return;
@@ -3847,7 +3847,8 @@ s3_bfd_score_elf_discard_info (bfd *abfd, struct elf_reloc_cookie *cookie,
if (!tdata)
return false;
- cookie->rels = _bfd_elf_link_read_relocs (abfd, o, NULL, NULL, info->keep_memory);
+ cookie->rels = _bfd_elf_link_read_relocs (abfd, o, NULL, NULL,
+ info->keep_memory);
if (!cookie->rels)
{
free (tdata);
@@ -3658,7 +3658,8 @@ s7_bfd_score_elf_discard_info (bfd *abfd,
if (!tdata)
return false;
- cookie->rels = _bfd_elf_link_read_relocs (abfd, o, NULL, NULL, info->keep_memory);
+ cookie->rels = _bfd_elf_link_read_relocs (abfd, o, NULL, NULL,
+ info->keep_memory);
if (!cookie->rels)
{
free (tdata);
@@ -475,9 +475,8 @@ sh_elf_relax_section (bfd *abfd, asection *sec,
symtab_hdr = &elf_symtab_hdr (abfd);
- internal_relocs = (_bfd_elf_link_read_relocs
- (abfd, sec, NULL, (Elf_Internal_Rela *) NULL,
- link_info->keep_memory));
+ internal_relocs = _bfd_elf_link_read_relocs (abfd, sec, NULL, NULL,
+ link_info->keep_memory);
if (internal_relocs == NULL)
goto error_return;
@@ -1163,8 +1162,7 @@ sh_elf_relax_delete_bytes (bfd *abfd, asection *sec, bfd_vma addr,
/* We always cache the relocs. Perhaps, if info->keep_memory is
FALSE, we should free them, if we are permitted to, when we
leave sh_coff_relax_section. */
- internal_relocs = (_bfd_elf_link_read_relocs
- (abfd, o, NULL, (Elf_Internal_Rela *) NULL, true));
+ internal_relocs = _bfd_elf_link_read_relocs (abfd, o, NULL, NULL, true);
if (internal_relocs == NULL)
return false;
@@ -5102,9 +5100,8 @@ sh_elf_get_relocated_section_contents (bfd *output_bfd,
Elf_Internal_Sym *isym, *isymend;
bfd_size_type amt;
- internal_relocs = (_bfd_elf_link_read_relocs
- (input_bfd, input_section, NULL,
- (Elf_Internal_Rela *) NULL, false));
+ internal_relocs = _bfd_elf_link_read_relocs (input_bfd, input_section,
+ NULL, NULL, false);
if (internal_relocs == NULL)
goto error_return;
@@ -3452,8 +3452,8 @@ v850_elf_relax_section (bfd *abfd,
symtab_hdr = &elf_symtab_hdr (abfd);
- internal_relocs = (_bfd_elf_link_read_relocs
- (abfd, sec, NULL, NULL, link_info->keep_memory));
+ internal_relocs = _bfd_elf_link_read_relocs (abfd, sec, NULL, NULL,
+ link_info->keep_memory);
if (internal_relocs == NULL)
goto error_return;
@@ -6910,8 +6910,8 @@ retrieve_internal_relocs (bfd *abfd, asection *sec, bool keep_memory)
internal_relocs = elf_section_data (sec)->relocs;
if (internal_relocs == NULL)
- internal_relocs = (_bfd_elf_link_read_relocs
- (abfd, sec, NULL, NULL, keep_memory));
+ internal_relocs = _bfd_elf_link_read_relocs (abfd, sec, NULL, NULL,
+ keep_memory);
return internal_relocs;
}
@@ -3462,10 +3462,9 @@ elf64_alpha_relax_opt_call (struct alpha_relax_info *info, bfd_vma symval)
}
else
{
- tsec_relocs = (_bfd_elf_link_read_relocs
- (info->abfd, info->tsec, NULL,
- (Elf_Internal_Rela *) NULL,
- info->link_info->keep_memory));
+ tsec_relocs
+ = _bfd_elf_link_read_relocs (info->abfd, info->tsec, NULL, NULL,
+ info->link_info->keep_memory);
if (tsec_relocs == NULL)
return 0;
tsec_relend = tsec_relocs + info->tsec->reloc_count;
@@ -4083,9 +4082,9 @@ elf64_alpha_relax_section (bfd *abfd, asection *sec,
local_got_entries = alpha_elf_tdata(abfd)->local_got_entries;
/* Load the relocations for this section. */
- internal_relocs = (_bfd_elf_link_read_relocs
- (abfd, sec, NULL, (Elf_Internal_Rela *) NULL,
- link_info->keep_memory));
+ internal_relocs
+ = _bfd_elf_link_read_relocs (abfd, sec, NULL, NULL,
+ link_info->keep_memory);
if (internal_relocs == NULL)
return false;
@@ -384,9 +384,8 @@ elf64_ia64_relax_section (bfd *abfd, asection *sec,
symtab_hdr = &elf_symtab_hdr (abfd);
/* Load the relocations for this section. */
- internal_relocs = (_bfd_elf_link_read_relocs
- (abfd, sec, NULL, (Elf_Internal_Rela *) NULL,
- link_info->keep_memory));
+ internal_relocs = _bfd_elf_link_read_relocs (abfd, sec, NULL, NULL,
+ link_info->keep_memory);
if (internal_relocs == NULL)
return false;
@@ -2023,10 +2023,8 @@ _bfd_mmix_check_all_relocs (bfd *abfd, struct bfd_link_info *info)
|| bfd_is_abs_section (o->output_section))
continue;
- internal_relocs
- = _bfd_elf_link_read_relocs (abfd, o, NULL,
- (Elf_Internal_Rela *) NULL,
- info->keep_memory);
+ internal_relocs = _bfd_elf_link_read_relocs (abfd, o, NULL, NULL,
+ info->keep_memory);
if (internal_relocs == NULL)
return false;
@@ -2556,10 +2554,8 @@ mmix_elf_relax_section (bfd *abfd,
gregdata = NULL;
/* Get a copy of the native relocations. */
- internal_relocs
- = _bfd_elf_link_read_relocs (abfd, sec, NULL,
- (Elf_Internal_Rela *) NULL,
- link_info->keep_memory);
+ internal_relocs = _bfd_elf_link_read_relocs (abfd, sec, NULL, NULL,
+ link_info->keep_memory);
if (internal_relocs == NULL)
goto error_return;
@@ -4358,9 +4358,9 @@ _bfd_elf_link_iterate_on_relocs
|| bfd_is_abs_section (o->output_section))
continue;
- internal_relocs = _bfd_elf_link_info_read_relocs
- (abfd, info, o, NULL, NULL,
- _bfd_elf_link_keep_memory (info));
+ internal_relocs
+ = _bfd_elf_link_info_read_relocs (abfd, info, o, NULL, NULL,
+ _bfd_elf_link_keep_memory (info));
if (internal_relocs == NULL)
return false;
@@ -5841,9 +5841,9 @@ elf_link_add_object_symbols (bfd *abfd, struct bfd_link_info *info)
|| (s->flags & SEC_DEBUGGING) != 0)
continue;
- internal_relocs = _bfd_elf_link_info_read_relocs
- (abfd, info, s, NULL, NULL,
- _bfd_elf_link_keep_memory (info));
+ internal_relocs
+ = _bfd_elf_link_info_read_relocs (abfd, info, s, NULL, NULL,
+ _bfd_elf_link_keep_memory (info));
if (internal_relocs == NULL)
goto error_free_vers;
@@ -13972,9 +13972,10 @@ init_reloc_cookie_rels (struct elf_reloc_cookie *cookie,
}
else
{
- cookie->rels = _bfd_elf_link_info_read_relocs
- (abfd, info, sec, NULL, NULL,
- keep_memory || _bfd_elf_link_keep_memory (info));
+ keep_memory = keep_memory || _bfd_elf_link_keep_memory (info);
+ cookie->rels
+ = _bfd_elf_link_info_read_relocs (abfd, info, sec, NULL, NULL,
+ keep_memory);
if (cookie->rels == NULL)
return false;
cookie->rel = cookie->rels;
@@ -384,9 +384,8 @@ elfNN_ia64_relax_section (bfd *abfd, asection *sec,
symtab_hdr = &elf_symtab_hdr (abfd);
/* Load the relocations for this section. */
- internal_relocs = (_bfd_elf_link_read_relocs
- (abfd, sec, NULL, (Elf_Internal_Rela *) NULL,
- link_info->keep_memory));
+ internal_relocs = _bfd_elf_link_read_relocs (abfd, sec, NULL, NULL,
+ link_info->keep_memory);
if (internal_relocs == NULL)
return false;
@@ -1322,8 +1322,8 @@ elfNN_kvx_size_stubs (bfd *output_bfd,
/* Get the relocs. */
internal_relocs
- = _bfd_elf_link_read_relocs (input_bfd, section, NULL,
- NULL, info->keep_memory);
+ = _bfd_elf_link_read_relocs (input_bfd, section, NULL, NULL,
+ info->keep_memory);
if (internal_relocs == NULL)
goto error_ret_free_local;
@@ -1921,9 +1921,9 @@ record_relr_non_got_relocs (bfd *input_bfd, struct bfd_link_info *info,
struct riscv_elf_link_hash_table *htab = riscv_elf_hash_table (info);
Elf_Internal_Shdr *symtab_hdr = &elf_symtab_hdr (input_bfd);
struct elf_link_hash_entry **sym_hashes = elf_sym_hashes (input_bfd);
- const Elf_Internal_Rela * relocs =
- _bfd_elf_link_info_read_relocs (input_bfd, info, sec, NULL, NULL,
- info->keep_memory);
+ const Elf_Internal_Rela *relocs
+ = _bfd_elf_link_info_read_relocs (input_bfd, info, sec, NULL, NULL,
+ info->keep_memory);
BFD_ASSERT (relocs != NULL);
const Elf_Internal_Rela *rel = relocs;
@@ -7348,8 +7348,8 @@ _bfd_mips_elf_eh_frame_address_size (bfd *abfd, const asection *sec)
if (sec->reloc_count > 0)
{
/* Load the relocations for this section. */
- Elf_Internal_Rela *internal_relocs =
- _bfd_elf_link_read_relocs (abfd, sec, NULL, NULL, true);
+ Elf_Internal_Rela *internal_relocs
+ = _bfd_elf_link_read_relocs (abfd, sec, NULL, NULL, true);
if (internal_relocs == NULL)
return 0;
@@ -8566,9 +8566,8 @@ _bfd_mips_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
|| section_allows_mips16_refs_p (o))
continue;
- sec_relocs
- = _bfd_elf_link_read_relocs (abfd, o, NULL, NULL,
- info->keep_memory);
+ sec_relocs = _bfd_elf_link_read_relocs (abfd, o, NULL, NULL,
+ info->keep_memory);
if (sec_relocs == NULL)
return false;
@@ -8692,9 +8691,8 @@ _bfd_mips_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
|| section_allows_mips16_refs_p (o))
continue;
- sec_relocs
- = _bfd_elf_link_read_relocs (abfd, o, NULL, NULL,
- info->keep_memory);
+ sec_relocs = _bfd_elf_link_read_relocs (abfd, o, NULL, NULL,
+ info->keep_memory);
if (sec_relocs == NULL)
return false;
@@ -14132,9 +14130,8 @@ _bfd_mips_elf_relax_section (bfd *abfd, asection *sec,
symtab_hdr = &elf_symtab_hdr (abfd);
/* Get a copy of the native relocations. */
- internal_relocs = (_bfd_elf_link_read_relocs
- (abfd, sec, NULL, (Elf_Internal_Rela *) NULL,
- link_info->keep_memory));
+ internal_relocs = _bfd_elf_link_read_relocs (abfd, sec, NULL, NULL,
+ link_info->keep_memory);
if (internal_relocs == NULL)
goto error_return;
@@ -1125,8 +1125,7 @@ _bfd_x86_elf_link_relax_section (bfd *abfd ATTRIBUTE_UNUSED,
/* Load the relocations for this section. */
internal_relocs =
- _bfd_elf_link_info_read_relocs (abfd, info, input_section, NULL,
- (Elf_Internal_Rela *) NULL,
+ _bfd_elf_link_info_read_relocs (abfd, info, input_section, NULL, NULL,
info->keep_memory);
if (internal_relocs == NULL)
return false;