elf_backend_relocate_section int vs. bfd_boolean

This functions was changed to return an int in commit ece5ef6079 but
since bfd_boolean was an int typedef I lazily left all the ELF
relocate_section functions as returning bfd_boolean, except the SPU
one.  In order to use _Bool or bool in place of bfd_boolean we need to
be fussy about the return types.

	* elf-m10200.c (mn10200_elf_relocate_section): Return int.
	* elf-m10300.c (mn10300_elf_relocate_section): Likewise.
	* elf32-arc.c (elf_arc_relocate_section): Likewise.
	* elf32-arm.c (elf32_arm_relocate_section): Likewise.
	* elf32-avr.c (elf32_avr_relocate_section): Likewise.
	* elf32-bfin.c (bfin_relocate_section): Likewise.
	(bfinfdpic_relocate_section): Likewise.
	* elf32-cr16.c (elf32_cr16_relocate_section): Likewise.
	* elf32-cris.c (cris_elf_relocate_section): Likewise.
	* elf32-crx.c (elf32_crx_relocate_section): Likewise.
	* elf32-csky.c (csky_elf_relocate_section): Likewise.
	* elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
	* elf32-epiphany.c (epiphany_elf_relocate_section): Likewise.
	* elf32-fr30.c (fr30_elf_relocate_section): Likewise.
	* elf32-frv.c (elf32_frv_relocate_section): Likewise.
	* elf32-ft32.c (ft32_elf_relocate_section): Likewise.
	* elf32-h8300.c (elf32_h8_relocate_section): Likewise.
	* elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
	* elf32-i386.c (elf_i386_relocate_section): Likewise.
	* elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
	* elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
	* elf32-lm32.c (lm32_elf_relocate_section): Likewise.
	* elf32-m32c.c (m32c_elf_relocate_section): Likewise.
	* elf32-m32r.c (m32r_elf_relocate_section): Likewise.
	* elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
	* elf32-m68hc1x.h (elf32_m68hc11_relocate_section): Likewise.
	* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
	* elf32-mcore.c (mcore_elf_relocate_section): Likewise.
	* elf32-mep.c (mep_elf_relocate_section): Likewise.
	* elf32-metag.c (elf_metag_relocate_section): Likewise.
	* elf32-microblaze.c (microblaze_elf_relocate_section): Likewise.
	* elf32-moxie.c (moxie_elf_relocate_section): Likewise.
	* elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
	* elf32-mt.c (mt_elf_relocate_section): Likewise.
	* elf32-nds32.c (nds32_elf_relocate_section): Likewise.
	* elf32-nios2.c (nios2_elf32_relocate_section): Likewise.
	* elf32-or1k.c (or1k_elf_relocate_section): Likewise.
	* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
	* elf32-pru.c (pru_elf32_relocate_section): Likewise.
	* elf32-rl78.c (rl78_elf_relocate_section): Likewise.
	* elf32-rx.c (rx_elf_relocate_section): Likewise.
	* elf32-s390.c (elf_s390_relocate_section): Likewise.
	* elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
	(_bfd_score_elf_relocate_section): Likewise.
	* elf32-score.h (s7_bfd_score_elf_relocate_section): Likewise.
	* elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
	* elf32-sh.c (sh_elf_relocate_section): Likewise.
	* elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
	* elf32-tilepro.c (tilepro_elf_relocate_section): Likewise.
	* elf32-v850.c (v850_elf_relocate_section): Likewise.
	* elf32-vax.c (elf_vax_relocate_section): Likewise.
	* elf32-visium.c (visium_elf_relocate_section): Likewise.
	* elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
	* elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
	* elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
	* elf32-z80.c (z80_elf_relocate_section): Likewise.
	* elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
	(elf64_alpha_relocate_section): Likewise.
	* elf64-bpf.c (bpf_elf_relocate_section): Likewise.
	* elf64-hppa.c (elf64_hppa_relocate_section): Likewise.
	* elf64-ia64-vms.c (elf64_ia64_relocate_section): Likewise.
	* elf64-mmix.c (mmix_elf_relocate_section): Likewise.
	* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
	* elf64-s390.c (elf_s390_relocate_section): Likewise.
	* elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
	* elfnn-aarch64.c (elfNN_aarch64_relocate_section): Likewise.
	* elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
	* elfnn-riscv.c (riscv_elf_relocate_section): Likewise.
	* elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
	* elfxx-mips.h (_bfd_mips_elf_relocate_section): Likewise.
	* elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
	* elfxx-sparc.h (_bfd_sparc_elf_relocate_section): Likewise.
	* elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise.
	* elfxx-tilegx.h (tilegx_elf_relocate_section): Likewise.
This commit is contained in:
Alan Modra 2021-03-29 09:38:15 +10:30
parent b1063d1d96
commit 0f68420117
72 changed files with 159 additions and 82 deletions

View file

@ -1,3 +1,80 @@
2021-03-29 Alan Modra <amodra@gmail.com>
* elf-m10200.c (mn10200_elf_relocate_section): Return int.
* elf-m10300.c (mn10300_elf_relocate_section): Likewise.
* elf32-arc.c (elf_arc_relocate_section): Likewise.
* elf32-arm.c (elf32_arm_relocate_section): Likewise.
* elf32-avr.c (elf32_avr_relocate_section): Likewise.
* elf32-bfin.c (bfin_relocate_section): Likewise.
(bfinfdpic_relocate_section): Likewise.
* elf32-cr16.c (elf32_cr16_relocate_section): Likewise.
* elf32-cris.c (cris_elf_relocate_section): Likewise.
* elf32-crx.c (elf32_crx_relocate_section): Likewise.
* elf32-csky.c (csky_elf_relocate_section): Likewise.
* elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
* elf32-epiphany.c (epiphany_elf_relocate_section): Likewise.
* elf32-fr30.c (fr30_elf_relocate_section): Likewise.
* elf32-frv.c (elf32_frv_relocate_section): Likewise.
* elf32-ft32.c (ft32_elf_relocate_section): Likewise.
* elf32-h8300.c (elf32_h8_relocate_section): Likewise.
* elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
* elf32-i386.c (elf_i386_relocate_section): Likewise.
* elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
* elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
* elf32-lm32.c (lm32_elf_relocate_section): Likewise.
* elf32-m32c.c (m32c_elf_relocate_section): Likewise.
* elf32-m32r.c (m32r_elf_relocate_section): Likewise.
* elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
* elf32-m68hc1x.h (elf32_m68hc11_relocate_section): Likewise.
* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
* elf32-mcore.c (mcore_elf_relocate_section): Likewise.
* elf32-mep.c (mep_elf_relocate_section): Likewise.
* elf32-metag.c (elf_metag_relocate_section): Likewise.
* elf32-microblaze.c (microblaze_elf_relocate_section): Likewise.
* elf32-moxie.c (moxie_elf_relocate_section): Likewise.
* elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
* elf32-mt.c (mt_elf_relocate_section): Likewise.
* elf32-nds32.c (nds32_elf_relocate_section): Likewise.
* elf32-nios2.c (nios2_elf32_relocate_section): Likewise.
* elf32-or1k.c (or1k_elf_relocate_section): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
* elf32-pru.c (pru_elf32_relocate_section): Likewise.
* elf32-rl78.c (rl78_elf_relocate_section): Likewise.
* elf32-rx.c (rx_elf_relocate_section): Likewise.
* elf32-s390.c (elf_s390_relocate_section): Likewise.
* elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
(_bfd_score_elf_relocate_section): Likewise.
* elf32-score.h (s7_bfd_score_elf_relocate_section): Likewise.
* elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
* elf32-sh.c (sh_elf_relocate_section): Likewise.
* elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
* elf32-tilepro.c (tilepro_elf_relocate_section): Likewise.
* elf32-v850.c (v850_elf_relocate_section): Likewise.
* elf32-vax.c (elf_vax_relocate_section): Likewise.
* elf32-visium.c (visium_elf_relocate_section): Likewise.
* elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
* elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
* elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
* elf32-z80.c (z80_elf_relocate_section): Likewise.
* elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
(elf64_alpha_relocate_section): Likewise.
* elf64-bpf.c (bpf_elf_relocate_section): Likewise.
* elf64-hppa.c (elf64_hppa_relocate_section): Likewise.
* elf64-ia64-vms.c (elf64_ia64_relocate_section): Likewise.
* elf64-mmix.c (mmix_elf_relocate_section): Likewise.
* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
* elf64-s390.c (elf_s390_relocate_section): Likewise.
* elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
* elfnn-aarch64.c (elfNN_aarch64_relocate_section): Likewise.
* elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
* elfnn-riscv.c (riscv_elf_relocate_section): Likewise.
* elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
* elfxx-mips.h (_bfd_mips_elf_relocate_section): Likewise.
* elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
* elfxx-sparc.h (_bfd_sparc_elf_relocate_section): Likewise.
* elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise.
* elfxx-tilegx.h (tilegx_elf_relocate_section): Likewise.
2021-03-26 Keith Seitz <keiths@redhat.com> 2021-03-26 Keith Seitz <keiths@redhat.com>
* elfcore.h (_bfd_elf_core_find_build_id): Seek file * elfcore.h (_bfd_elf_core_find_build_id): Seek file

View file

@ -335,7 +335,7 @@ mn10200_elf_final_link_relocate (reloc_howto_type *howto,
} }
/* Relocate an MN10200 ELF section. */ /* Relocate an MN10200 ELF section. */
static bfd_boolean static int
mn10200_elf_relocate_section (bfd *output_bfd, mn10200_elf_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -1963,7 +1963,7 @@ mn10300_elf_final_link_relocate (reloc_howto_type *howto,
/* Relocate an MN10300 ELF section. */ /* Relocate an MN10300 ELF section. */
static bfd_boolean static int
mn10300_elf_relocate_section (bfd *output_bfd, mn10300_elf_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -1423,7 +1423,7 @@ arc_do_relocation (bfd_byte * contents,
local_section : is an array giving the section in the input file local_section : is an array giving the section in the input file
corresponding to the st_shndx field of each corresponding to the st_shndx field of each
local symbol. */ local symbol. */
static bfd_boolean static int
elf_arc_relocate_section (bfd * output_bfd, elf_arc_relocate_section (bfd * output_bfd,
struct bfd_link_info * info, struct bfd_link_info * info,
bfd * input_bfd, bfd * input_bfd,

View file

@ -13024,7 +13024,7 @@ arm_add_to_rel (bfd * abfd,
/* Relocate an ARM ELF section. */ /* Relocate an ARM ELF section. */
static bfd_boolean static int
elf32_arm_relocate_section (bfd * output_bfd, elf32_arm_relocate_section (bfd * output_bfd,
struct bfd_link_info * info, struct bfd_link_info * info,
bfd * input_bfd, bfd * input_bfd,

View file

@ -1413,7 +1413,7 @@ avr_final_link_relocate (reloc_howto_type * howto,
/* Relocate an AVR ELF section. */ /* Relocate an AVR ELF section. */
static bfd_boolean static int
elf32_avr_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED, elf32_avr_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -1357,7 +1357,7 @@ bfin_final_link_relocate (Elf_Internal_Rela *rel, reloc_howto_type *howto,
} }
static bfd_boolean static int
bfin_relocate_section (bfd * output_bfd, bfin_relocate_section (bfd * output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd * input_bfd, bfd * input_bfd,
@ -2487,7 +2487,7 @@ _bfinfdpic_emit_got_relocs_plt_entries (struct bfinfdpic_relocs_info *entry,
section, which means that the addend must be adjusted section, which means that the addend must be adjusted
accordingly. */ accordingly. */
static bfd_boolean static int
bfinfdpic_relocate_section (bfd * output_bfd, bfinfdpic_relocate_section (bfd * output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd * input_bfd, bfd * input_bfd,

View file

@ -1335,7 +1335,7 @@ elf32_cr16_relax_delete_bytes (struct bfd_link_info *link_info, bfd *abfd,
/* Relocate a CR16 ELF section. */ /* Relocate a CR16 ELF section. */
static bfd_boolean static int
elf32_cr16_relocate_section (bfd *output_bfd, struct bfd_link_info *info, elf32_cr16_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
bfd *input_bfd, asection *input_section, bfd *input_bfd, asection *input_section,
bfd_byte *contents, Elf_Internal_Rela *relocs, bfd_byte *contents, Elf_Internal_Rela *relocs,

View file

@ -968,7 +968,7 @@ static int additional_relocation_error_msg_count = 10;
/* Relocate an CRIS ELF section. See elf32-fr30.c, from where this was /* Relocate an CRIS ELF section. See elf32-fr30.c, from where this was
copied, for further comments. */ copied, for further comments. */
static bfd_boolean static int
cris_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED, cris_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -36,7 +36,7 @@ static bfd_reloc_status_type crx_elf_final_link_relocate
(reloc_howto_type *, bfd *, bfd *, asection *, (reloc_howto_type *, bfd *, bfd *, asection *,
bfd_byte *, bfd_vma, bfd_vma, bfd_vma, bfd_byte *, bfd_vma, bfd_vma, bfd_vma,
struct bfd_link_info *, asection *, int); struct bfd_link_info *, asection *, int);
static bfd_boolean elf32_crx_relocate_section static int elf32_crx_relocate_section
(bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *, (bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *,
Elf_Internal_Rela *, Elf_Internal_Sym *, asection **); Elf_Internal_Rela *, Elf_Internal_Sym *, asection **);
static bfd_boolean elf32_crx_relax_section static bfd_boolean elf32_crx_relax_section
@ -818,7 +818,7 @@ elf32_crx_get_relocated_section_contents (bfd *output_bfd,
/* Relocate a CRX ELF section. */ /* Relocate a CRX ELF section. */
static bfd_boolean static int
elf32_crx_relocate_section (bfd *output_bfd, struct bfd_link_info *info, elf32_crx_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
bfd *input_bfd, asection *input_section, bfd *input_bfd, asection *input_section,
bfd_byte *contents, Elf_Internal_Rela *relocs, bfd_byte *contents, Elf_Internal_Rela *relocs,

View file

@ -4254,7 +4254,7 @@ tpoff (struct bfd_link_info *info, bfd_vma address)
/* Relocate a csky section. */ /* Relocate a csky section. */
static bfd_boolean static int
csky_elf_relocate_section (bfd * output_bfd, csky_elf_relocate_section (bfd * output_bfd,
struct bfd_link_info * info, struct bfd_link_info * info,
bfd * input_bfd, bfd * input_bfd,

View file

@ -386,7 +386,7 @@ insert_rel_addend (bfd *abfd,
/* Relocate a D10V ELF section. */ /* Relocate a D10V ELF section. */
static bfd_boolean static int
elf32_d10v_relocate_section (bfd *output_bfd, elf32_d10v_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -468,7 +468,7 @@ epiphany_final_link_relocate (reloc_howto_type * howto,
section, which means that the addend must be adjusted section, which means that the addend must be adjusted
accordingly. */ accordingly. */
static bfd_boolean static int
epiphany_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED, epiphany_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -497,7 +497,7 @@ fr30_final_link_relocate (reloc_howto_type *howto,
section, which means that the addend must be adjusted section, which means that the addend must be adjusted
accordingly. */ accordingly. */
static bfd_boolean static int
fr30_elf_relocate_section (bfd *output_bfd, fr30_elf_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -2652,7 +2652,7 @@ frv_final_link_relocate (reloc_howto_type *howto,
section, which means that the addend must be adjusted section, which means that the addend must be adjusted
accordingly. */ accordingly. */
static bfd_boolean static int
elf32_frv_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED, elf32_frv_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -342,7 +342,7 @@ ft32_info_to_howto_rela (bfd *abfd,
section, which means that the addend must be adjusted section, which means that the addend must be adjusted
accordingly. */ accordingly. */
static bfd_boolean static int
ft32_elf_relocate_section (bfd *output_bfd, ft32_elf_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -47,7 +47,7 @@ static bfd_reloc_status_type elf32_h8_final_link_relocate
(unsigned long, bfd *, bfd *, asection *, (unsigned long, bfd *, bfd *, asection *,
bfd_byte *, bfd_vma, bfd_vma, bfd_vma, bfd_byte *, bfd_vma, bfd_vma, bfd_vma,
struct bfd_link_info *, asection *, int); struct bfd_link_info *, asection *, int);
static bfd_boolean elf32_h8_relocate_section static int elf32_h8_relocate_section
(bfd *, struct bfd_link_info *, bfd *, asection *, (bfd *, struct bfd_link_info *, bfd *, asection *,
bfd_byte *, Elf_Internal_Rela *, bfd_byte *, Elf_Internal_Rela *,
Elf_Internal_Sym *, asection **); Elf_Internal_Sym *, asection **);
@ -425,7 +425,7 @@ elf32_h8_final_link_relocate (unsigned long r_type, bfd *input_bfd,
} }
/* Relocate an H8 ELF section. */ /* Relocate an H8 ELF section. */
static bfd_boolean static int
elf32_h8_relocate_section (bfd *output_bfd, struct bfd_link_info *info, elf32_h8_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
bfd *input_bfd, asection *input_section, bfd *input_bfd, asection *input_section,
bfd_byte *contents, Elf_Internal_Rela *relocs, bfd_byte *contents, Elf_Internal_Rela *relocs,

View file

@ -3443,7 +3443,7 @@ final_link_relocate (asection *input_section,
/* Relocate an HPPA ELF section. */ /* Relocate an HPPA ELF section. */
static bfd_boolean static int
elf32_hppa_relocate_section (bfd *output_bfd, elf32_hppa_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -1993,7 +1993,7 @@ elf_i386_tpoff (struct bfd_link_info *info, bfd_vma address)
/* Relocate an i386 ELF section. */ /* Relocate an i386 ELF section. */
static bfd_boolean static int
elf_i386_relocate_section (bfd *output_bfd, elf_i386_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -1384,7 +1384,7 @@ ip2k_final_link_relocate (reloc_howto_type * howto,
section, which means that the addend must be adjusted section, which means that the addend must be adjusted
accordingly. */ accordingly. */
static bfd_boolean static int
ip2k_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED, ip2k_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -561,7 +561,7 @@ iq2000_elf_check_relocs (bfd *abfd,
section, which means that the addend must be adjusted section, which means that the addend must be adjusted
accordingly. */ accordingly. */
static bfd_boolean static int
iq2000_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED, iq2000_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED,
struct bfd_link_info * info, struct bfd_link_info * info,
bfd * input_bfd, bfd * input_bfd,

View file

@ -715,7 +715,7 @@ _lm32fdpic_osec_readonly_p (bfd *output_bfd, asection *osec)
/* Relocate a section */ /* Relocate a section */
static bfd_boolean static int
lm32_elf_relocate_section (bfd *output_bfd, lm32_elf_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -30,7 +30,7 @@ static reloc_howto_type * m32c_reloc_type_lookup
(bfd *, bfd_reloc_code_real_type); (bfd *, bfd_reloc_code_real_type);
static bfd_boolean m32c_info_to_howto_rela static bfd_boolean m32c_info_to_howto_rela
(bfd *, arelent *, Elf_Internal_Rela *); (bfd *, arelent *, Elf_Internal_Rela *);
static bfd_boolean m32c_elf_relocate_section static int m32c_elf_relocate_section
(bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *, Elf_Internal_Rela *, Elf_Internal_Sym *, asection **); (bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *, Elf_Internal_Rela *, Elf_Internal_Sym *, asection **);
static bfd_boolean m32c_elf_check_relocs static bfd_boolean m32c_elf_check_relocs
(bfd *, struct bfd_link_info *, asection *, const Elf_Internal_Rela *); (bfd *, struct bfd_link_info *, asection *, const Elf_Internal_Rela *);
@ -388,7 +388,7 @@ static bfd_reloc_status_type m32c_apply_reloc_24 (bfd *abfd ATTRIBUTE_UNUSED,
section, which means that the addend must be adjusted section, which means that the addend must be adjusted
accordingly. */ accordingly. */
static bfd_boolean static int
m32c_elf_relocate_section m32c_elf_relocate_section
(bfd * output_bfd ATTRIBUTE_UNUSED, (bfd * output_bfd ATTRIBUTE_UNUSED,
struct bfd_link_info * info, struct bfd_link_info * info,

View file

@ -2150,7 +2150,7 @@ m32r_elf_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
section, which means that the addend must be adjusted section, which means that the addend must be adjusted
accordingly. */ accordingly. */
static bfd_boolean static int
m32r_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED, m32r_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -923,7 +923,7 @@ reloc_warning (struct bfd_link_info *info, const char *name, bfd *input_bfd,
} }
/* Relocate a 68hc11/68hc12 ELF section. */ /* Relocate a 68hc11/68hc12 ELF section. */
bfd_boolean int
elf32_m68hc11_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED, elf32_m68hc11_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, asection *input_section, bfd *input_bfd, asection *input_section,

View file

@ -161,7 +161,7 @@ bfd_reloc_status_type m68hc11_elf_special_reloc
bfd_boolean elf32_m68hc11_check_relocs bfd_boolean elf32_m68hc11_check_relocs
(bfd * abfd, struct bfd_link_info * info, (bfd * abfd, struct bfd_link_info * info,
asection * sec, const Elf_Internal_Rela * relocs); asection * sec, const Elf_Internal_Rela * relocs);
bfd_boolean elf32_m68hc11_relocate_section int elf32_m68hc11_relocate_section
(bfd *output_bfd, struct bfd_link_info *info, (bfd *output_bfd, struct bfd_link_info *info,
bfd *input_bfd, asection *input_section, bfd *input_bfd, asection *input_section,
bfd_byte *contents, Elf_Internal_Rela *relocs, bfd_byte *contents, Elf_Internal_Rela *relocs,

View file

@ -3420,7 +3420,7 @@ elf_m68k_init_got_entry_local_shared (struct bfd_link_info *info,
/* Relocate an M68K ELF section. */ /* Relocate an M68K ELF section. */
static bfd_boolean static int
elf_m68k_relocate_section (bfd *output_bfd, elf_m68k_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -390,7 +390,7 @@ mcore_elf_info_to_howto (bfd * abfd,
section, which means that the addend must be adjusted section, which means that the addend must be adjusted
accordingly. */ accordingly. */
static bfd_boolean static int
mcore_elf_relocate_section (bfd * output_bfd, mcore_elf_relocate_section (bfd * output_bfd,
struct bfd_link_info * info, struct bfd_link_info * info,
bfd * input_bfd, bfd * input_bfd,

View file

@ -424,7 +424,7 @@ mep_info_to_howto_rela (bfd * abfd,
section, which means that the addend must be adjusted section, which means that the addend must be adjusted
accordingly. */ accordingly. */
static bfd_boolean static int
mep_elf_relocate_section mep_elf_relocate_section
(bfd * output_bfd ATTRIBUTE_UNUSED, (bfd * output_bfd ATTRIBUTE_UNUSED,
struct bfd_link_info * info, struct bfd_link_info * info,

View file

@ -1452,7 +1452,7 @@ going to be the section symbol corresponding to the output
section, which means that the addend must be adjusted section, which means that the addend must be adjusted
accordingly. */ accordingly. */
static bfd_boolean static int
elf_metag_relocate_section (bfd *output_bfd, elf_metag_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -902,7 +902,7 @@ microblaze_elf_output_dynamic_relocation (bfd *output_bfd,
section, which means that the addend must be adjusted section, which means that the addend must be adjusted
accordingly. */ accordingly. */
static bfd_boolean static int
microblaze_elf_relocate_section (bfd *output_bfd, microblaze_elf_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -197,7 +197,7 @@ moxie_final_link_relocate (reloc_howto_type *howto,
section, which means that the addend must be adjusted section, which means that the addend must be adjusted
accordingly. */ accordingly. */
static bfd_boolean static int
moxie_elf_relocate_section (bfd *output_bfd, moxie_elf_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -1411,7 +1411,7 @@ msp430_final_link_relocate (reloc_howto_type * howto,
/* Relocate an MSP430 ELF section. */ /* Relocate an MSP430 ELF section. */
static bfd_boolean static int
elf32_msp430_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED, elf32_msp430_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED,
struct bfd_link_info * info, struct bfd_link_info * info,
bfd * input_bfd, bfd * input_bfd,

View file

@ -38,7 +38,7 @@ static bfd_reloc_status_type mt_final_link_relocate
(reloc_howto_type *, bfd *, asection *, bfd_byte *, (reloc_howto_type *, bfd *, asection *, bfd_byte *,
Elf_Internal_Rela *, bfd_vma); Elf_Internal_Rela *, bfd_vma);
static bfd_boolean mt_elf_relocate_section static int mt_elf_relocate_section
(bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *, (bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *,
Elf_Internal_Rela *, Elf_Internal_Sym *, asection **); Elf_Internal_Rela *, Elf_Internal_Sym *, asection **);
@ -297,7 +297,7 @@ mt_final_link_relocate
section, which means that the addend must be adjusted section, which means that the addend must be adjusted
accordingly. */ accordingly. */
static bfd_boolean static int
mt_elf_relocate_section mt_elf_relocate_section
(bfd * output_bfd ATTRIBUTE_UNUSED, (bfd * output_bfd ATTRIBUTE_UNUSED,
struct bfd_link_info * info, struct bfd_link_info * info,

View file

@ -4935,7 +4935,7 @@ fls (register unsigned int x)
#define nds32_elf_local_tlsdesc_gotent(bfd) \ #define nds32_elf_local_tlsdesc_gotent(bfd) \
(elf_nds32_tdata (bfd)->local_tlsdesc_gotent) (elf_nds32_tdata (bfd)->local_tlsdesc_gotent)
static bfd_boolean static int
nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED, nds32_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED,
struct bfd_link_info * info, struct bfd_link_info * info,
bfd * input_bfd, bfd * input_bfd,

View file

@ -3675,7 +3675,7 @@ nios2_elf32_callr_relocate (bfd *abfd, arelent *reloc_entry, asymbol *symbol,
/* Implement elf_backend_relocate_section. */ /* Implement elf_backend_relocate_section. */
static bfd_boolean static int
nios2_elf32_relocate_section (bfd *output_bfd, nios2_elf32_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -1242,7 +1242,7 @@ or1k_final_link_relocate (reloc_howto_type *howto, bfd *input_bfd,
section, which means that the addend must be adjusted section, which means that the addend must be adjusted
accordingly. */ accordingly. */
static bfd_boolean static int
or1k_elf_relocate_section (bfd *output_bfd, or1k_elf_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -6933,7 +6933,7 @@ is_insn_dq_form (unsigned int insn)
section, which means that the addend must be adjusted section, which means that the addend must be adjusted
accordingly. */ accordingly. */
static bfd_boolean static int
ppc_elf_relocate_section (bfd *output_bfd, ppc_elf_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -680,7 +680,7 @@ pru_elf32_ldi32_relocate (bfd *abfd, arelent *reloc_entry, asymbol *symbol,
/* Implement elf_backend_relocate_section. */ /* Implement elf_backend_relocate_section. */
static bfd_boolean static int
pru_elf32_relocate_section (bfd *output_bfd, pru_elf32_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -673,7 +673,7 @@ rl78_special_reloc (bfd * input_bfd,
section, which means that the addend must be adjusted section, which means that the addend must be adjusted
accordingly. */ accordingly. */
static bfd_boolean static int
rl78_elf_relocate_section rl78_elf_relocate_section
(bfd * output_bfd, (bfd * output_bfd,
struct bfd_link_info * info, struct bfd_link_info * info,

View file

@ -481,7 +481,7 @@ static unsigned int rx_stack_top;
section, which means that the addend must be adjusted section, which means that the addend must be adjusted
accordingly. */ accordingly. */
static bfd_boolean static int
rx_elf_relocate_section rx_elf_relocate_section
(bfd * output_bfd, (bfd * output_bfd,
struct bfd_link_info * info, struct bfd_link_info * info,

View file

@ -2016,7 +2016,7 @@ invalid_tls_insn (bfd *input_bfd,
/* Relocate a 390 ELF section. */ /* Relocate a 390 ELF section. */
static bfd_boolean static int
elf_s390_relocate_section (bfd *output_bfd, elf_s390_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -2400,7 +2400,7 @@ s3_bfd_score_info_to_howto (bfd *abfd,
} }
/* Relocate an score ELF section. */ /* Relocate an score ELF section. */
static bfd_boolean static int
s3_bfd_score_elf_relocate_section (bfd *output_bfd, s3_bfd_score_elf_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,
@ -4082,7 +4082,7 @@ _bfd_score_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED,
return s7_bfd_score_info_to_howto (abfd, bfd_reloc, elf_reloc); return s7_bfd_score_info_to_howto (abfd, bfd_reloc, elf_reloc);
} }
static bfd_boolean static int
_bfd_score_elf_relocate_section (bfd *output_bfd, _bfd_score_elf_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -33,7 +33,7 @@ s7_bfd_score_elf_hide_symbol (struct bfd_link_info *,
extern bfd_boolean extern bfd_boolean
s7_bfd_score_info_to_howto (bfd *, arelent *, Elf_Internal_Rela *); s7_bfd_score_info_to_howto (bfd *, arelent *, Elf_Internal_Rela *);
extern bfd_boolean extern int
s7_bfd_score_elf_relocate_section (bfd *, s7_bfd_score_elf_relocate_section (bfd *,
struct bfd_link_info *, struct bfd_link_info *,
bfd *, bfd *,

View file

@ -2240,7 +2240,7 @@ s7_bfd_score_info_to_howto (bfd *abfd,
/* Relocate an score ELF section. */ /* Relocate an score ELF section. */
bfd_boolean int
s7_bfd_score_elf_relocate_section (bfd *output_bfd, s7_bfd_score_elf_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -3376,7 +3376,7 @@ install_movi20_field (bfd *output_bfd, unsigned long relocation,
/* Relocate an SH ELF section. */ /* Relocate an SH ELF section. */
static bfd_boolean static int
sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info, sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
bfd *input_bfd, asection *input_section, bfd *input_bfd, asection *input_section,
bfd_byte *contents, Elf_Internal_Rela *relocs, bfd_byte *contents, Elf_Internal_Rela *relocs,

View file

@ -2147,7 +2147,7 @@ elf32_tic6x_link_omit_section_dynsym (bfd *output_bfd ATTRIBUTE_UNUSED,
} }
} }
static bfd_boolean static int
elf32_tic6x_relocate_section (bfd *output_bfd, elf32_tic6x_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -2512,7 +2512,7 @@ static const bfd_byte insn_tls_gd_add_Y0Y1[] = {
section, which means that the addend must be adjusted section, which means that the addend must be adjusted
accordingly. */ accordingly. */
static bfd_boolean static int
tilepro_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info, tilepro_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
bfd *input_bfd, asection *input_section, bfd *input_bfd, asection *input_section,
bfd_byte *contents, Elf_Internal_Rela *relocs, bfd_byte *contents, Elf_Internal_Rela *relocs,

View file

@ -2167,7 +2167,7 @@ v850_elf_final_link_relocate (reloc_howto_type *howto,
/* Relocate an V850 ELF section. */ /* Relocate an V850 ELF section. */
static bfd_boolean static int
v850_elf_relocate_section (bfd *output_bfd, v850_elf_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -37,10 +37,10 @@ static bfd_boolean elf_vax_check_relocs (bfd *, struct bfd_link_info *,
static bfd_boolean elf_vax_adjust_dynamic_symbol (struct bfd_link_info *, static bfd_boolean elf_vax_adjust_dynamic_symbol (struct bfd_link_info *,
struct elf_link_hash_entry *); struct elf_link_hash_entry *);
static bfd_boolean elf_vax_size_dynamic_sections (bfd *, struct bfd_link_info *); static bfd_boolean elf_vax_size_dynamic_sections (bfd *, struct bfd_link_info *);
static bfd_boolean elf_vax_relocate_section (bfd *, struct bfd_link_info *, static int elf_vax_relocate_section (bfd *, struct bfd_link_info *,
bfd *, asection *, bfd_byte *, bfd *, asection *, bfd_byte *,
Elf_Internal_Rela *, Elf_Internal_Rela *,
Elf_Internal_Sym *, asection **); Elf_Internal_Sym *, asection **);
static bfd_boolean elf_vax_finish_dynamic_symbol (bfd *, struct bfd_link_info *, static bfd_boolean elf_vax_finish_dynamic_symbol (bfd *, struct bfd_link_info *,
struct elf_link_hash_entry *, struct elf_link_hash_entry *,
Elf_Internal_Sym *); Elf_Internal_Sym *);
@ -1199,7 +1199,7 @@ elf_vax_instantiate_got_entries (struct elf_link_hash_entry *h, void * infoptr)
/* Relocate an VAX ELF section. */ /* Relocate an VAX ELF section. */
static bfd_boolean static int
elf_vax_relocate_section (bfd *output_bfd, elf_vax_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -548,7 +548,7 @@ visium_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
/* Relocate a VISIUM ELF section. */ /* Relocate a VISIUM ELF section. */
static bfd_boolean static int
visium_elf_relocate_section (bfd *output_bfd, visium_elf_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, bfd *input_bfd, struct bfd_link_info *info, bfd *input_bfd,
asection *input_section, bfd_byte *contents, asection *input_section, bfd_byte *contents,

View file

@ -341,7 +341,7 @@ elf32_xc16x_final_link_relocate (unsigned long r_type,
} }
} }
static bfd_boolean static int
elf32_xc16x_relocate_section (bfd *output_bfd, elf32_xc16x_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -759,7 +759,7 @@ xstormy16_elf_always_size_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
section, which means that the addend must be adjusted section, which means that the addend must be adjusted
accordingly. */ accordingly. */
static bfd_boolean static int
xstormy16_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED, xstormy16_elf_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED,
struct bfd_link_info * info, struct bfd_link_info * info,
bfd * input_bfd, bfd * input_bfd,

View file

@ -2493,7 +2493,7 @@ replace_tls_insn (Elf_Internal_Rela *rel,
/* Relocate an Xtensa ELF section. This is invoked by the linker for /* Relocate an Xtensa ELF section. This is invoked by the linker for
both relocatable and final links. */ both relocatable and final links. */
static bfd_boolean static int
elf_xtensa_relocate_section (bfd *output_bfd, elf_xtensa_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -383,7 +383,7 @@ z80_elf_final_link_relocate (unsigned long r_type,
return r ? bfd_reloc_ok : bfd_reloc_notsupported; return r ? bfd_reloc_ok : bfd_reloc_notsupported;
} }
static bfd_boolean static int
z80_elf_relocate_section (bfd *output_bfd, z80_elf_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -4037,7 +4037,7 @@ elf64_alpha_emit_dynrel (bfd *abfd, struct bfd_link_info *info,
symbol, in which case we have to adjust according to where the section symbol, in which case we have to adjust according to where the section
symbol winds up in the output section. */ symbol winds up in the output section. */
static bfd_boolean static int
elf64_alpha_relocate_section_r (bfd *output_bfd ATTRIBUTE_UNUSED, elf64_alpha_relocate_section_r (bfd *output_bfd ATTRIBUTE_UNUSED,
struct bfd_link_info *info ATTRIBUTE_UNUSED, struct bfd_link_info *info ATTRIBUTE_UNUSED,
bfd *input_bfd, asection *input_section, bfd *input_bfd, asection *input_section,
@ -4119,7 +4119,7 @@ elf64_alpha_relocate_section_r (bfd *output_bfd ATTRIBUTE_UNUSED,
/* Relocate an Alpha ELF section. */ /* Relocate an Alpha ELF section. */
static bfd_boolean static int
elf64_alpha_relocate_section (bfd *output_bfd, struct bfd_link_info *info, elf64_alpha_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
bfd *input_bfd, asection *input_section, bfd *input_bfd, asection *input_section,
bfd_byte *contents, Elf_Internal_Rela *relocs, bfd_byte *contents, Elf_Internal_Rela *relocs,

View file

@ -364,7 +364,7 @@ bpf_info_to_howto (bfd *abfd, arelent *bfd_reloc,
#define sec_addr(sec) ((sec)->output_section->vma + (sec)->output_offset) #define sec_addr(sec) ((sec)->output_section->vma + (sec)->output_offset)
static bfd_boolean static int
bpf_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED, bpf_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -3735,7 +3735,7 @@ elf_hppa_final_link_relocate (Elf_Internal_Rela *rel,
/* Relocate an HPPA ELF section. */ /* Relocate an HPPA ELF section. */
static bfd_boolean static int
elf64_hppa_relocate_section (bfd *output_bfd, elf64_hppa_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -3371,7 +3371,7 @@ elf64_ia64_final_link (bfd *abfd, struct bfd_link_info *info)
return TRUE; return TRUE;
} }
static bfd_boolean static int
elf64_ia64_relocate_section (bfd *output_bfd, elf64_ia64_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -1350,7 +1350,7 @@ mmix_elf_reloc (bfd *abfd,
/* Relocate an MMIX ELF section. Modified from elf32-fr30.c; look to it /* Relocate an MMIX ELF section. Modified from elf32-fr30.c; look to it
for guidance if you're thinking of copying this. */ for guidance if you're thinking of copying this. */
static bfd_boolean static int
mmix_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED, mmix_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -14897,7 +14897,7 @@ ppc64_glibc_dynamic_reloc (enum elf_ppc64_reloc_type r_type)
section, which means that the addend must be adjusted section, which means that the addend must be adjusted
accordingly. */ accordingly. */
static bfd_boolean static int
ppc64_elf_relocate_section (bfd *output_bfd, ppc64_elf_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -1970,7 +1970,7 @@ invalid_tls_insn (bfd *input_bfd,
/* Relocate a 390 ELF section. */ /* Relocate a 390 ELF section. */
static bfd_boolean static int
elf_s390_relocate_section (bfd *output_bfd, elf_s390_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -2411,7 +2411,7 @@ elf_x86_64_tpoff (struct bfd_link_info *info, bfd_vma address)
/* Relocate an x86_64 ELF section. */ /* Relocate an x86_64 ELF section. */
static bfd_boolean static int
elf_x86_64_relocate_section (bfd *output_bfd, elf_x86_64_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -6697,7 +6697,7 @@ elfNN_aarch64_tls_relax (struct elf_aarch64_link_hash_table *globals,
/* Relocate an AArch64 ELF section. */ /* Relocate an AArch64 ELF section. */
static bfd_boolean static int
elfNN_aarch64_relocate_section (bfd *output_bfd, elfNN_aarch64_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -3757,7 +3757,7 @@ elfNN_ia64_final_link (bfd *abfd, struct bfd_link_info *info)
return TRUE; return TRUE;
} }
static bfd_boolean static int
elfNN_ia64_relocate_section (bfd *output_bfd, elfNN_ia64_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -1932,7 +1932,7 @@ riscv_resolve_pcrel_lo_relocs (riscv_pcrel_relocs *p)
section, which means that the addend must be adjusted section, which means that the addend must be adjusted
accordingly. */ accordingly. */
static bfd_boolean static int
riscv_elf_relocate_section (bfd *output_bfd, riscv_elf_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -10319,7 +10319,7 @@ mips_reloc_against_discarded_section (bfd *output_bfd,
/* Relocate a MIPS ELF section. */ /* Relocate a MIPS ELF section. */
bfd_boolean int
_bfd_mips_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info, _bfd_mips_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
bfd *input_bfd, asection *input_section, bfd *input_bfd, asection *input_section,
bfd_byte *contents, Elf_Internal_Rela *relocs, bfd_byte *contents, Elf_Internal_Rela *relocs,

View file

@ -56,7 +56,7 @@ extern bfd_boolean _bfd_mips_elf_always_size_sections
(bfd *, struct bfd_link_info *); (bfd *, struct bfd_link_info *);
extern bfd_boolean _bfd_mips_elf_size_dynamic_sections extern bfd_boolean _bfd_mips_elf_size_dynamic_sections
(bfd *, struct bfd_link_info *); (bfd *, struct bfd_link_info *);
extern bfd_boolean _bfd_mips_elf_relocate_section extern int _bfd_mips_elf_relocate_section
(bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *, (bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *,
Elf_Internal_Rela *, Elf_Internal_Sym *, asection **); Elf_Internal_Rela *, Elf_Internal_Sym *, asection **);
extern bfd_boolean _bfd_mips_elf_finish_dynamic_symbol extern bfd_boolean _bfd_mips_elf_finish_dynamic_symbol

View file

@ -2764,7 +2764,7 @@ gdop_relative_offset_ok (struct bfd_link_info *info,
/* Relocate a SPARC ELF section. */ /* Relocate a SPARC ELF section. */
bfd_boolean int
_bfd_sparc_elf_relocate_section (bfd *output_bfd, _bfd_sparc_elf_relocate_section (bfd *output_bfd,
struct bfd_link_info *info, struct bfd_link_info *info,
bfd *input_bfd, bfd *input_bfd,

View file

@ -123,7 +123,7 @@ extern bfd_boolean _bfd_sparc_elf_new_section_hook
(bfd *, asection *); (bfd *, asection *);
extern bfd_boolean _bfd_sparc_elf_relax_section extern bfd_boolean _bfd_sparc_elf_relax_section
(bfd *, struct bfd_section *, struct bfd_link_info *, bfd_boolean *); (bfd *, struct bfd_section *, struct bfd_link_info *, bfd_boolean *);
extern bfd_boolean _bfd_sparc_elf_relocate_section extern int _bfd_sparc_elf_relocate_section
(bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *, (bfd *, struct bfd_link_info *, bfd *, asection *, bfd_byte *,
Elf_Internal_Rela *, Elf_Internal_Sym *, asection **); Elf_Internal_Rela *, Elf_Internal_Sym *, asection **);
extern bfd_boolean _bfd_sparc_elf_finish_dynamic_symbol extern bfd_boolean _bfd_sparc_elf_finish_dynamic_symbol

View file

@ -2796,7 +2796,7 @@ static const bfd_byte *insn_addx_Y0Y1 = insn_tls_ie_addx_Y0Y1;
section, which means that the addend must be adjusted section, which means that the addend must be adjusted
accordingly. */ accordingly. */
bfd_boolean int
tilegx_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info, tilegx_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
bfd *input_bfd, asection *input_section, bfd *input_bfd, asection *input_section,
bfd_byte *contents, Elf_Internal_Rela *relocs, bfd_byte *contents, Elf_Internal_Rela *relocs,

View file

@ -59,7 +59,7 @@ tilegx_elf_omit_section_dynsym (bfd *,
extern bfd_boolean extern bfd_boolean
tilegx_elf_size_dynamic_sections (bfd *, struct bfd_link_info *); tilegx_elf_size_dynamic_sections (bfd *, struct bfd_link_info *);
extern bfd_boolean extern int
tilegx_elf_relocate_section (bfd *, struct bfd_link_info *, tilegx_elf_relocate_section (bfd *, struct bfd_link_info *,
bfd *, asection *, bfd *, asection *,
bfd_byte *, Elf_Internal_Rela *, bfd_byte *, Elf_Internal_Rela *,