elf_backend_relocate_section int vs. bfd_boolean
authorAlan Modra <amodra@gmail.com>
Sun, 28 Mar 2021 23:08:15 +0000 (09:38 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 29 Mar 2021 00:52:21 +0000 (11:22 +1030)
This functions was changed to return an int in commit ece5ef60797f 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.

72 files changed:
bfd/ChangeLog
bfd/elf-m10200.c
bfd/elf-m10300.c
bfd/elf32-arc.c
bfd/elf32-arm.c
bfd/elf32-avr.c
bfd/elf32-bfin.c
bfd/elf32-cr16.c
bfd/elf32-cris.c
bfd/elf32-crx.c
bfd/elf32-csky.c
bfd/elf32-d10v.c
bfd/elf32-epiphany.c
bfd/elf32-fr30.c
bfd/elf32-frv.c
bfd/elf32-ft32.c
bfd/elf32-h8300.c
bfd/elf32-hppa.c
bfd/elf32-i386.c
bfd/elf32-ip2k.c
bfd/elf32-iq2000.c
bfd/elf32-lm32.c
bfd/elf32-m32c.c
bfd/elf32-m32r.c
bfd/elf32-m68hc1x.c
bfd/elf32-m68hc1x.h
bfd/elf32-m68k.c
bfd/elf32-mcore.c
bfd/elf32-mep.c
bfd/elf32-metag.c
bfd/elf32-microblaze.c
bfd/elf32-moxie.c
bfd/elf32-msp430.c
bfd/elf32-mt.c
bfd/elf32-nds32.c
bfd/elf32-nios2.c
bfd/elf32-or1k.c
bfd/elf32-ppc.c
bfd/elf32-pru.c
bfd/elf32-rl78.c
bfd/elf32-rx.c
bfd/elf32-s390.c
bfd/elf32-score.c
bfd/elf32-score.h
bfd/elf32-score7.c
bfd/elf32-sh.c
bfd/elf32-tic6x.c
bfd/elf32-tilepro.c
bfd/elf32-v850.c
bfd/elf32-vax.c
bfd/elf32-visium.c
bfd/elf32-xc16x.c
bfd/elf32-xstormy16.c
bfd/elf32-xtensa.c
bfd/elf32-z80.c
bfd/elf64-alpha.c
bfd/elf64-bpf.c
bfd/elf64-hppa.c
bfd/elf64-ia64-vms.c
bfd/elf64-mmix.c
bfd/elf64-ppc.c
bfd/elf64-s390.c
bfd/elf64-x86-64.c
bfd/elfnn-aarch64.c
bfd/elfnn-ia64.c
bfd/elfnn-riscv.c
bfd/elfxx-mips.c
bfd/elfxx-mips.h
bfd/elfxx-sparc.c
bfd/elfxx-sparc.h
bfd/elfxx-tilegx.c
bfd/elfxx-tilegx.h

index 6f3fccc0a6a23a01694bf42b054fac94f1440f19..1fbbe3361db73f14046aa6639c5e5b62b12a5c33 100644 (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>
 
        * elfcore.h (_bfd_elf_core_find_build_id): Seek file
index c12732b4deaea4d67a55fb7b5021b9624c62498e..0d056a795f7b4a96ce20e3d7013abf80250c3db3 100644 (file)
@@ -335,7 +335,7 @@ mn10200_elf_final_link_relocate (reloc_howto_type *howto,
 }
 \f
 /* Relocate an MN10200 ELF section.  */
-static bfd_boolean
+static int
 mn10200_elf_relocate_section (bfd *output_bfd,
                              struct bfd_link_info *info,
                              bfd *input_bfd,
index 752c1210c27bba0bfb3443738af5ad00a70ebc10..c9a728ae2e689b489a0963c3e57d4a37118db5fb 100644 (file)
@@ -1963,7 +1963,7 @@ mn10300_elf_final_link_relocate (reloc_howto_type *howto,
 \f
 /* Relocate an MN10300 ELF section.  */
 
-static bfd_boolean
+static int
 mn10300_elf_relocate_section (bfd *output_bfd,
                              struct bfd_link_info *info,
                              bfd *input_bfd,
index df12fd33a10147766dcc1b666add8de44337496a..32096fe4897f47436e40e15462437d7a5ba42657 100644 (file)
@@ -1423,7 +1423,7 @@ arc_do_relocation (bfd_byte * contents,
              local_section : is an array giving the section in the input file
                              corresponding to the st_shndx field of each
                              local symbol.  */
-static bfd_boolean
+static int
 elf_arc_relocate_section (bfd *                          output_bfd,
                          struct bfd_link_info *  info,
                          bfd *                   input_bfd,
index bf0be0c881e538a3e7c6a9bd1cba89b60cb10775..d70529d6dec0eb3c4e65b3524583cf5f92e86974 100644 (file)
@@ -13024,7 +13024,7 @@ arm_add_to_rel (bfd *              abfd,
 
 /* Relocate an ARM ELF section.  */
 
-static bfd_boolean
+static int
 elf32_arm_relocate_section (bfd *                 output_bfd,
                            struct bfd_link_info * info,
                            bfd *                  input_bfd,
index ed38ff8bb02b25863c50bfabef396b3b466677ac..79de45dc1d2102cbe95b24540c15a2de8fd735b8 100644 (file)
@@ -1413,7 +1413,7 @@ avr_final_link_relocate (reloc_howto_type *                   howto,
 
 /* Relocate an AVR ELF section.  */
 
-static bfd_boolean
+static int
 elf32_avr_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
                            struct bfd_link_info *info,
                            bfd *input_bfd,
index a0cb1661b9a5dddb90bb63b958703b1fba47da2a..c7a4f6c86bc93ddbaf62dc9e1107a759b519b683 100644 (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,
                       struct bfd_link_info *info,
                       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
    accordingly.  */
 
-static bfd_boolean
+static int
 bfinfdpic_relocate_section (bfd * output_bfd,
                            struct bfd_link_info *info,
                            bfd * input_bfd,
index 4c327d511ed7c96af7b30475042a572c4d5f1473..958f648608a745a6cda2993e57a70762333d264d 100644 (file)
@@ -1335,7 +1335,7 @@ elf32_cr16_relax_delete_bytes (struct bfd_link_info *link_info, bfd *abfd,
 
 /* Relocate a CR16 ELF section.  */
 
-static bfd_boolean
+static int
 elf32_cr16_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
                             bfd *input_bfd, asection *input_section,
                             bfd_byte *contents, Elf_Internal_Rela *relocs,
index 080f95849b065dfce6a536e94b41b5d1454e1e38..c5f9a8bd73fbc2af6584c5d7f88cd78b4ce532cb 100644 (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
    copied, for further comments.  */
 
-static bfd_boolean
+static int
 cris_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
                           struct bfd_link_info *info,
                           bfd *input_bfd,
index 99edfffdc4da7c9d0d890662153f0281da5e0d30..d201226fabb39f292714fcae812d635a54c2785a 100644 (file)
@@ -36,7 +36,7 @@ static bfd_reloc_status_type crx_elf_final_link_relocate
   (reloc_howto_type *, bfd *, bfd *, asection *,
    bfd_byte *, bfd_vma, bfd_vma, bfd_vma,
    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 *,
    Elf_Internal_Rela *, Elf_Internal_Sym *, asection **);
 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.  */
 
-static bfd_boolean
+static int
 elf32_crx_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
                            bfd *input_bfd, asection *input_section,
                            bfd_byte *contents, Elf_Internal_Rela *relocs,
index 4e6db39cf409066e504394b812160524903c4e10..62336695412ddf2a21367c8dcd57794e94380b40 100644 (file)
@@ -4254,7 +4254,7 @@ tpoff (struct bfd_link_info *info, bfd_vma address)
 
 /* Relocate a csky section.  */
 
-static bfd_boolean
+static int
 csky_elf_relocate_section (bfd *                  output_bfd,
                           struct bfd_link_info * info,
                           bfd *                  input_bfd,
index 15855e70d1f2169035a875081ad536f67ba76a9c..d8cdfa1d516790ae98f1f126fec4699b2a579efb 100644 (file)
@@ -386,7 +386,7 @@ insert_rel_addend (bfd *abfd,
 
 /* Relocate a D10V ELF section.  */
 
-static bfd_boolean
+static int
 elf32_d10v_relocate_section (bfd *output_bfd,
                             struct bfd_link_info *info,
                             bfd *input_bfd,
index 25adfb98bee0e69c506d15c6f8c7e6bf66a35564..c6a884901db39edcbd4c680da57abb52722d30ec 100644 (file)
@@ -468,7 +468,7 @@ epiphany_final_link_relocate (reloc_howto_type *  howto,
    section, which means that the addend must be adjusted
    accordingly.  */
 
-static bfd_boolean
+static int
 epiphany_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
                               struct bfd_link_info *info,
                               bfd *input_bfd,
index 1000694869ca94d53ffd033415985d368e01b212..cd9395ae9bc876477a5d406d8d6507cb7d41df1f 100644 (file)
@@ -497,7 +497,7 @@ fr30_final_link_relocate (reloc_howto_type *howto,
    section, which means that the addend must be adjusted
    accordingly.  */
 
-static bfd_boolean
+static int
 fr30_elf_relocate_section (bfd *output_bfd,
                           struct bfd_link_info *info,
                           bfd *input_bfd,
index 211c500c4544667e62c4fbeed2ac6239d40ddd8b..007e05334deb2de5104bcab1cb3a42304c369667 100644 (file)
@@ -2652,7 +2652,7 @@ frv_final_link_relocate (reloc_howto_type *howto,
    section, which means that the addend must be adjusted
    accordingly.  */
 
-static bfd_boolean
+static int
 elf32_frv_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
                            struct bfd_link_info *info,
                            bfd *input_bfd,
index 5a6ec764804afdf06f6425db2f39710c1a99fd8d..0ba2da06259049f96686046157ad4f08771354c0 100644 (file)
@@ -342,7 +342,7 @@ ft32_info_to_howto_rela (bfd *abfd,
    section, which means that the addend must be adjusted
    accordingly.  */
 
-static bfd_boolean
+static int
 ft32_elf_relocate_section (bfd *output_bfd,
                            struct bfd_link_info *info,
                            bfd *input_bfd,
index 617f4ae01e06e0032a79391cd52bc57fc7f01b44..187551642d014f7f4b38cf14775f6ba9b5130446 100644 (file)
@@ -47,7 +47,7 @@ static bfd_reloc_status_type elf32_h8_final_link_relocate
   (unsigned long, bfd *, bfd *, asection *,
    bfd_byte *, bfd_vma, bfd_vma, bfd_vma,
    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_byte *, Elf_Internal_Rela *,
    Elf_Internal_Sym *, asection **);
@@ -425,7 +425,7 @@ elf32_h8_final_link_relocate (unsigned long r_type, bfd *input_bfd,
 }
 \f
 /* Relocate an H8 ELF section.  */
-static bfd_boolean
+static int
 elf32_h8_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
                           bfd *input_bfd, asection *input_section,
                           bfd_byte *contents, Elf_Internal_Rela *relocs,
index ec354c88ff24696886704b6a140fbf53ee04df29..c00dbeeb1654bde6ad601db40ec57e3b5429f9c2 100644 (file)
@@ -3443,7 +3443,7 @@ final_link_relocate (asection *input_section,
 
 /* Relocate an HPPA ELF section.  */
 
-static bfd_boolean
+static int
 elf32_hppa_relocate_section (bfd *output_bfd,
                             struct bfd_link_info *info,
                             bfd *input_bfd,
index 04ea7d088b6f2340939f5f8296ff52a9e85654af..b95340f289779719a10363c9f5cb8420a9fe8421 100644 (file)
@@ -1993,7 +1993,7 @@ elf_i386_tpoff (struct bfd_link_info *info, bfd_vma address)
 
 /* Relocate an i386 ELF section.  */
 
-static bfd_boolean
+static int
 elf_i386_relocate_section (bfd *output_bfd,
                           struct bfd_link_info *info,
                           bfd *input_bfd,
index 2ba3ebfc6e36e78dbefda5a0f2ea3a812aaf89a1..11d558189a515b9c174dd8ed62d667f7d635acb1 100644 (file)
@@ -1384,7 +1384,7 @@ ip2k_final_link_relocate (reloc_howto_type *  howto,
    section, which means that the addend must be adjusted
    accordingly.  */
 
-static bfd_boolean
+static int
 ip2k_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
                           struct bfd_link_info *info,
                           bfd *input_bfd,
index b29be24878e7d15a10f26bb26a347c9217ebaa9b..7e52487b3fde97056eb3f3013bdf01274e4298c5 100644 (file)
@@ -561,7 +561,7 @@ iq2000_elf_check_relocs (bfd *abfd,
    section, which means that the addend must be adjusted
    accordingly.         */
 
-static bfd_boolean
+static int
 iq2000_elf_relocate_section (bfd *                  output_bfd ATTRIBUTE_UNUSED,
                             struct bfd_link_info *  info,
                             bfd *                   input_bfd,
index 9d72150ccc1a525a09ee5bd98152988d0092256e..6c8b563cb65d3a81aaa7bf8e2bc3377d193c00ab 100644 (file)
@@ -715,7 +715,7 @@ _lm32fdpic_osec_readonly_p (bfd *output_bfd, asection *osec)
 
 /* Relocate a section */
 
-static bfd_boolean
+static int
 lm32_elf_relocate_section (bfd *output_bfd,
                           struct bfd_link_info *info,
                           bfd *input_bfd,
index db19967874b5242b79885dd4aa5d4e1087768d94..d7bc2f81cd212ae158b96380a067e3294e0eff3a 100644 (file)
@@ -30,7 +30,7 @@ static reloc_howto_type * m32c_reloc_type_lookup
   (bfd *, bfd_reloc_code_real_type);
 static bfd_boolean m32c_info_to_howto_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 **);
 static bfd_boolean m32c_elf_check_relocs
   (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
    accordingly.  */
 
-static bfd_boolean
+static int
 m32c_elf_relocate_section
     (bfd *                  output_bfd ATTRIBUTE_UNUSED,
      struct bfd_link_info *  info,
index 95e0c17bc5c71dad45bda76e45e07323916594e6..29ebd99b58e893ae3eb33664fd8b235ed5973cc2 100644 (file)
@@ -2150,7 +2150,7 @@ m32r_elf_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
    section, which means that the addend must be adjusted
    accordingly.  */
 
-static bfd_boolean
+static int
 m32r_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
                           struct bfd_link_info *info,
                           bfd *input_bfd,
index 38767aac839bfcaf628a8d1bc1de4ab319a2d63f..6b34b2051ffc99784a4723487d0047f7b5ac85d7 100644 (file)
@@ -923,7 +923,7 @@ reloc_warning (struct bfd_link_info *info, const char *name, bfd *input_bfd,
 }
 
 /* Relocate a 68hc11/68hc12 ELF section.  */
-bfd_boolean
+int
 elf32_m68hc11_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
                                struct bfd_link_info *info,
                                bfd *input_bfd, asection *input_section,
index 8a5c0214ba34d2de76cdba9683457f553b38af95..419b22cb784f3b8086dc23037cd910f53ed7dc01 100644 (file)
@@ -161,7 +161,7 @@ bfd_reloc_status_type m68hc11_elf_special_reloc
 bfd_boolean elf32_m68hc11_check_relocs
   (bfd * abfd, struct bfd_link_info * info,
    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 *input_bfd, asection *input_section,
    bfd_byte *contents, Elf_Internal_Rela *relocs,
index f2222d0ed68f24165407c252c666e412070cdd03..edbc3e9d2920917b5f29221e48870c47fd82616c 100644 (file)
@@ -3420,7 +3420,7 @@ elf_m68k_init_got_entry_local_shared (struct bfd_link_info *info,
 
 /* Relocate an M68K ELF section.  */
 
-static bfd_boolean
+static int
 elf_m68k_relocate_section (bfd *output_bfd,
                           struct bfd_link_info *info,
                           bfd *input_bfd,
index 5f5184b9139873596abd53c5be577f8375391e45..20185fd13153940d8b2ad6bf933a0f4e2f996185 100644 (file)
@@ -390,7 +390,7 @@ mcore_elf_info_to_howto (bfd * abfd,
    section, which means that the addend must be adjusted
    accordingly.  */
 
-static bfd_boolean
+static int
 mcore_elf_relocate_section (bfd * output_bfd,
                            struct bfd_link_info * info,
                            bfd * input_bfd,
index d87770ca4f0f95e13cc6a71b45816adb8661c547..81a984c85e99524f2bec79da3536965c783386df 100644 (file)
@@ -424,7 +424,7 @@ mep_info_to_howto_rela (bfd *                   abfd,
    section, which means that the addend must be adjusted
    accordingly.  */
 
-static bfd_boolean
+static int
 mep_elf_relocate_section
     (bfd *                  output_bfd ATTRIBUTE_UNUSED,
      struct bfd_link_info *  info,
index ac6d37977cc0565675b3440d2c6d853a9e322366..20f8dc98a7f46a07e1a1411ab5d6e76e6dd0f781 100644 (file)
@@ -1452,7 +1452,7 @@ going to be the section symbol corresponding to the output
 section, which means that the addend must be adjusted
 accordingly.  */
 
-static bfd_boolean
+static int
 elf_metag_relocate_section (bfd *output_bfd,
                            struct bfd_link_info *info,
                            bfd *input_bfd,
index 1571bbb118a354c23b09de96aee0dd4ce361fcb8..cfd7b8cf6bba654906e87bf6995e51711ac21853 100644 (file)
@@ -902,7 +902,7 @@ microblaze_elf_output_dynamic_relocation (bfd *output_bfd,
    section, which means that the addend must be adjusted
    accordingly.  */
 
-static bfd_boolean
+static int
 microblaze_elf_relocate_section (bfd *output_bfd,
                                 struct bfd_link_info *info,
                                 bfd *input_bfd,
index 38fcdedc0a906613d47a0f07a3ffcaf3a30d41bc..fbeb55c4a2e9e7eef05ae8a19657b67adcbd5909 100644 (file)
@@ -197,7 +197,7 @@ moxie_final_link_relocate (reloc_howto_type *howto,
    section, which means that the addend must be adjusted
    accordingly.  */
 
-static bfd_boolean
+static int
 moxie_elf_relocate_section (bfd *output_bfd,
                            struct bfd_link_info *info,
                            bfd *input_bfd,
index eebe74a6791031be5fd16b364d50d22f1cac2e57..03439622b84775b43512e269cbebdd447c3d748e 100644 (file)
@@ -1411,7 +1411,7 @@ msp430_final_link_relocate (reloc_howto_type *       howto,
 
 /* Relocate an MSP430 ELF section.  */
 
-static bfd_boolean
+static int
 elf32_msp430_relocate_section (bfd * output_bfd ATTRIBUTE_UNUSED,
                               struct bfd_link_info * info,
                               bfd * input_bfd,
index c0b95b9c71fd58434c8758a483b00752e11eb40d..42a84aeeb1e3f39569f9050e61e605a869d3f5a7 100644 (file)
@@ -38,7 +38,7 @@ static bfd_reloc_status_type mt_final_link_relocate
   (reloc_howto_type *, bfd *, asection *, bfd_byte *,
    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 *,
    Elf_Internal_Rela *, Elf_Internal_Sym *, asection **);
 
@@ -297,7 +297,7 @@ mt_final_link_relocate
    section, which means that the addend must be adjusted
    accordingly.  */
 
-static bfd_boolean
+static int
 mt_elf_relocate_section
     (bfd *                  output_bfd ATTRIBUTE_UNUSED,
      struct bfd_link_info *  info,
index 01d0702255a84f8aefcd099795f53d65317651e3..0e63dfb575e7730ca0ac99091e5f9d4f19b7a4df 100644 (file)
@@ -4935,7 +4935,7 @@ fls (register unsigned int x)
 #define nds32_elf_local_tlsdesc_gotent(bfd) \
   (elf_nds32_tdata (bfd)->local_tlsdesc_gotent)
 
-static bfd_boolean
+static int
 nds32_elf_relocate_section (bfd *                 output_bfd ATTRIBUTE_UNUSED,
                            struct bfd_link_info * info,
                            bfd *                  input_bfd,
index c925bc975e71894756ee0f01df6e0a133ec5e26c..0235e5d0373d06f9fe3be7d291f81201a7e2f0d8 100644 (file)
@@ -3675,7 +3675,7 @@ nios2_elf32_callr_relocate (bfd *abfd, arelent *reloc_entry, asymbol *symbol,
 
 
 /* Implement elf_backend_relocate_section.  */
-static bfd_boolean
+static int
 nios2_elf32_relocate_section (bfd *output_bfd,
                              struct bfd_link_info *info,
                              bfd *input_bfd,
index 82a5b4ac8e255b0f54fe6ed6fde081134319a2da..5f9d26ce524b5d342759900d0c717f3d02153f1d 100644 (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
    accordingly.  */
 
-static bfd_boolean
+static int
 or1k_elf_relocate_section (bfd *output_bfd,
                           struct bfd_link_info *info,
                           bfd *input_bfd,
index fe8b6fdb7d1bfcdca27c3e6b913bdf1689e1f945..1a00a396e67cd1892b169c26cf2b059b3f73ce67 100644 (file)
@@ -6933,7 +6933,7 @@ is_insn_dq_form (unsigned int insn)
    section, which means that the addend must be adjusted
    accordingly.  */
 
-static bfd_boolean
+static int
 ppc_elf_relocate_section (bfd *output_bfd,
                          struct bfd_link_info *info,
                          bfd *input_bfd,
index b4726befa16b5923e9e8afdfcdbcff1646c0cf98..34cadf1a2eea1b0a17be4fbc3c24364c40fbe621 100644 (file)
@@ -680,7 +680,7 @@ pru_elf32_ldi32_relocate (bfd *abfd, arelent *reloc_entry, asymbol *symbol,
 
 
 /* Implement elf_backend_relocate_section.  */
-static bfd_boolean
+static int
 pru_elf32_relocate_section (bfd *output_bfd,
                            struct bfd_link_info *info,
                            bfd *input_bfd,
index a88db133725a5d062a49fc2e29c59fc8e37a4103..6bcfcbd0811b0e8b3d648c0102c9cd67e508a311 100644 (file)
@@ -673,7 +673,7 @@ rl78_special_reloc (bfd *      input_bfd,
    section, which means that the addend must be adjusted
    accordingly.  */
 
-static bfd_boolean
+static int
 rl78_elf_relocate_section
     (bfd *                  output_bfd,
      struct bfd_link_info *  info,
index e2f4c9fb34a0fde327c12b8c89e5cd22e25ef4b8..7b6cf9af241fb5f122cf2b74d151340fb22cd50b 100644 (file)
@@ -481,7 +481,7 @@ static unsigned int rx_stack_top;
    section, which means that the addend must be adjusted
    accordingly.  */
 
-static bfd_boolean
+static int
 rx_elf_relocate_section
     (bfd *                  output_bfd,
      struct bfd_link_info *  info,
index 55e61031a04c491262471d3dca0f6952808cbcd4..98ded1e56fcf493b8db47d5196b63db5388605f8 100644 (file)
@@ -2016,7 +2016,7 @@ invalid_tls_insn (bfd *input_bfd,
 
 /* Relocate a 390 ELF section.  */
 
-static bfd_boolean
+static int
 elf_s390_relocate_section (bfd *output_bfd,
                           struct bfd_link_info *info,
                           bfd *input_bfd,
index e34169e989f576766993259974b9337867ceadb3..8ed22311d2899753663cd3deac2b032004b588b7 100644 (file)
@@ -2400,7 +2400,7 @@ s3_bfd_score_info_to_howto (bfd *abfd,
 }
 
 /* Relocate an score ELF section.  */
-static bfd_boolean
+static int
 s3_bfd_score_elf_relocate_section (bfd *output_bfd,
                                   struct bfd_link_info *info,
                                   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);
 }
 
-static bfd_boolean
+static int
 _bfd_score_elf_relocate_section (bfd *output_bfd,
                                 struct bfd_link_info *info,
                                 bfd *input_bfd,
index 18a5f57558628fec1e6090c7d56a6f8c351fcde3..fdde38f9cedf97d05ab7ccbfb7e6f89086830adb 100644 (file)
@@ -33,7 +33,7 @@ s7_bfd_score_elf_hide_symbol (struct bfd_link_info *,
 extern bfd_boolean
 s7_bfd_score_info_to_howto (bfd *, arelent *, Elf_Internal_Rela *);
 
-extern bfd_boolean
+extern int
 s7_bfd_score_elf_relocate_section (bfd *,
                                   struct bfd_link_info *,
                                   bfd *,
index 9e1b7dae0cb415f84fc2318c4816e3448cb21855..b16c693200d82e1070b0e1fe3fe3eb1ff476421f 100644 (file)
@@ -2240,7 +2240,7 @@ s7_bfd_score_info_to_howto (bfd *abfd,
 
 /* Relocate an score ELF section.  */
 
-bfd_boolean
+int
 s7_bfd_score_elf_relocate_section (bfd *output_bfd,
                                   struct bfd_link_info *info,
                                   bfd *input_bfd,
index 10145505c3e9e9dcfec89ef94e5fac2d1e7a2e3b..d1b760d8532b2fa0550dbca7e20d9f9ccd1a8a89 100644 (file)
@@ -3376,7 +3376,7 @@ install_movi20_field (bfd *output_bfd, unsigned long relocation,
 
 /* Relocate an SH ELF section.  */
 
-static bfd_boolean
+static int
 sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
                         bfd *input_bfd, asection *input_section,
                         bfd_byte *contents, Elf_Internal_Rela *relocs,
index 53ec572fab9e40fd01796269651d1dbd98732a3d..8d7364dececccba018ff528b7ff54cd298a1db1c 100644 (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,
                              struct bfd_link_info *info,
                              bfd *input_bfd,
index 255235a4eb538ea24cf48018dfded292d07dc261..10a55328710bc606809f277db84ffdae3a7402fd 100644 (file)
@@ -2512,7 +2512,7 @@ static const bfd_byte insn_tls_gd_add_Y0Y1[] = {
    section, which means that the addend must be adjusted
    accordingly.  */
 
-static bfd_boolean
+static int
 tilepro_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
                              bfd *input_bfd, asection *input_section,
                              bfd_byte *contents, Elf_Internal_Rela *relocs,
index dc5f38a262d24474c274ef8df37505048ab95bbf..dc83bbc903f71b570fe9b149541617d0fde77178 100644 (file)
@@ -2167,7 +2167,7 @@ v850_elf_final_link_relocate (reloc_howto_type *howto,
 \f
 /* Relocate an V850 ELF section.  */
 
-static bfd_boolean
+static int
 v850_elf_relocate_section (bfd *output_bfd,
                           struct bfd_link_info *info,
                           bfd *input_bfd,
index ff83062a37aa6e09ff3f3cc06b1c394faa2373df..b6f4ab91b0e2a4f4342e3b4b33261cfef7778244 100644 (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 *,
                                                  struct elf_link_hash_entry *);
 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 *,
-                                            bfd *, asection *, bfd_byte *,
-                                            Elf_Internal_Rela *,
-                                            Elf_Internal_Sym *, asection **);
+static int elf_vax_relocate_section (bfd *, struct bfd_link_info *,
+                                    bfd *, asection *, bfd_byte *,
+                                    Elf_Internal_Rela *,
+                                    Elf_Internal_Sym *, asection **);
 static bfd_boolean elf_vax_finish_dynamic_symbol (bfd *, struct bfd_link_info *,
                                                  struct elf_link_hash_entry *,
                                                  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.  */
 
-static bfd_boolean
+static int
 elf_vax_relocate_section (bfd *output_bfd,
                          struct bfd_link_info *info,
                          bfd *input_bfd,
index d6430cc712fe6c2bab8692ae69a255a8bb90b017..e8b2585460023d73794bbd75c538ac8e8ab4f436 100644 (file)
@@ -548,7 +548,7 @@ visium_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
 
 /* Relocate a VISIUM ELF section.  */
 
-static bfd_boolean
+static int
 visium_elf_relocate_section (bfd *output_bfd,
                             struct bfd_link_info *info, bfd *input_bfd,
                             asection *input_section, bfd_byte *contents,
index a523968ed95a722b04207ebcc1f8e33507edf961..55e27825063b87e17ea5a681da2bf8d50afc93f1 100644 (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,
                              struct bfd_link_info *info,
                              bfd *input_bfd,
index 0e4824bdca73ae361348f07bc7f5ae7d45baa3e0..005e45442557a8738b4614f5c3758eb8575eb1b8 100644 (file)
@@ -759,7 +759,7 @@ xstormy16_elf_always_size_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
    section, which means that the addend must be adjusted
    accordingly.  */
 
-static bfd_boolean
+static int
 xstormy16_elf_relocate_section (bfd *                  output_bfd ATTRIBUTE_UNUSED,
                                struct bfd_link_info *  info,
                                bfd *                   input_bfd,
index abc244c04cb0989048505af1b6e05f797a13a2de..16a148bf42f267f6e2a3e2a8c898f1d8ba31f207 100644 (file)
@@ -2493,7 +2493,7 @@ replace_tls_insn (Elf_Internal_Rela *rel,
 /* Relocate an Xtensa ELF section.  This is invoked by the linker for
    both relocatable and final links.  */
 
-static bfd_boolean
+static int
 elf_xtensa_relocate_section (bfd *output_bfd,
                             struct bfd_link_info *info,
                             bfd *input_bfd,
index eacd714f3ea0a2f1d49463e3e0042ea8926694c9..5634fa132bb4926deb71218420d7a427453178dc 100644 (file)
@@ -383,7 +383,7 @@ z80_elf_final_link_relocate (unsigned long r_type,
   return r ? bfd_reloc_ok : bfd_reloc_notsupported;
 }
 
-static bfd_boolean
+static int
 z80_elf_relocate_section (bfd *output_bfd,
                          struct bfd_link_info *info,
                          bfd *input_bfd,
index 6fffc438fc4da1b0507968610b8aebc95a322614..0f67af4438aa95b7bf548a9be5b65190884a06f4 100644 (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 winds up in the output section.  */
 
-static bfd_boolean
+static int
 elf64_alpha_relocate_section_r (bfd *output_bfd ATTRIBUTE_UNUSED,
                                struct bfd_link_info *info ATTRIBUTE_UNUSED,
                                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.  */
 
-static bfd_boolean
+static int
 elf64_alpha_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
                              bfd *input_bfd, asection *input_section,
                              bfd_byte *contents, Elf_Internal_Rela *relocs,
index 1abd16b76c0b468f07a8a3a7caf2f30ab02c4159..98bcd3c9f76b670cb412f979df72fc642c935850 100644 (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)
 
-static bfd_boolean
+static int
 bpf_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
                           struct bfd_link_info *info,
                           bfd *input_bfd,
index 0ce85cced143b89870febd26ae7c0f7233736acf..58fc0144baa4ec3203edafc15831ca4161f29e78 100644 (file)
@@ -3735,7 +3735,7 @@ elf_hppa_final_link_relocate (Elf_Internal_Rela *rel,
 
 /* Relocate an HPPA ELF section.  */
 
-static bfd_boolean
+static int
 elf64_hppa_relocate_section (bfd *output_bfd,
                           struct bfd_link_info *info,
                           bfd *input_bfd,
index 317253fb9a61696ab7762d3b6feba7bad83e64b8..0a8cbc6b5b133183be9deb4f86ce8d6cca451fd5 100644 (file)
@@ -3371,7 +3371,7 @@ elf64_ia64_final_link (bfd *abfd, struct bfd_link_info *info)
   return TRUE;
 }
 
-static bfd_boolean
+static int
 elf64_ia64_relocate_section (bfd *output_bfd,
                             struct bfd_link_info *info,
                             bfd *input_bfd,
index 62365e1e4f79924cad96d005a483847595ea06be..0762b6dea9b7aeae7058a020d7cedf225e3e9ccd 100644 (file)
@@ -1350,7 +1350,7 @@ mmix_elf_reloc (bfd *abfd,
 /* Relocate an MMIX ELF section.  Modified from elf32-fr30.c; look to it
    for guidance if you're thinking of copying this.  */
 
-static bfd_boolean
+static int
 mmix_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
                           struct bfd_link_info *info,
                           bfd *input_bfd,
index 741f510a28d8359b1a53509a727dc0e7d818b407..b8af65ee3a683978c401c9f8338f5495cb333104 100644 (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
    accordingly.  */
 
-static bfd_boolean
+static int
 ppc64_elf_relocate_section (bfd *output_bfd,
                            struct bfd_link_info *info,
                            bfd *input_bfd,
index 01dcefed48e41e5a5ccdb34fcee2c2de520e72d1..8314c9a1b6270940b59fa1ae905e5e5298cebf51 100644 (file)
@@ -1970,7 +1970,7 @@ invalid_tls_insn (bfd *input_bfd,
 
 /* Relocate a 390 ELF section.  */
 
-static bfd_boolean
+static int
 elf_s390_relocate_section (bfd *output_bfd,
                           struct bfd_link_info *info,
                           bfd *input_bfd,
index bba22008c0642f6c8fe1e65d98ff5c8ba3ef2a5a..2fcba8bfd6091f68f99e3d7508916dcd4de7e2bc 100644 (file)
@@ -2411,7 +2411,7 @@ elf_x86_64_tpoff (struct bfd_link_info *info, bfd_vma address)
 
 /* Relocate an x86_64 ELF section.  */
 
-static bfd_boolean
+static int
 elf_x86_64_relocate_section (bfd *output_bfd,
                             struct bfd_link_info *info,
                             bfd *input_bfd,
index 2fee93aa5f95ace156a25d6488e01d2a8c7648d9..ccabc4fdcf339c6df7ab62658d232345bebde10d 100644 (file)
@@ -6697,7 +6697,7 @@ elfNN_aarch64_tls_relax (struct elf_aarch64_link_hash_table *globals,
 
 /* Relocate an AArch64 ELF section.  */
 
-static bfd_boolean
+static int
 elfNN_aarch64_relocate_section (bfd *output_bfd,
                                struct bfd_link_info *info,
                                bfd *input_bfd,
index 281a8375d511c04c3c5a9e8163f49c269e73e965..5cb9e6868354a3ddad7a6edd66c4c6845f77f5df 100644 (file)
@@ -3757,7 +3757,7 @@ elfNN_ia64_final_link (bfd *abfd, struct bfd_link_info *info)
   return TRUE;
 }
 
-static bfd_boolean
+static int
 elfNN_ia64_relocate_section (bfd *output_bfd,
                             struct bfd_link_info *info,
                             bfd *input_bfd,
index 364d67b6749bf7d929668a740ae73f174f82426e..ddccb40e243ecf803ded717827a2002c50fab7a5 100644 (file)
@@ -1932,7 +1932,7 @@ riscv_resolve_pcrel_lo_relocs (riscv_pcrel_relocs *p)
    section, which means that the addend must be adjusted
    accordingly.  */
 
-static bfd_boolean
+static int
 riscv_elf_relocate_section (bfd *output_bfd,
                            struct bfd_link_info *info,
                            bfd *input_bfd,
index 41abf4954dc20ca297f4cc84e5043bcaae488da7..6d2909fab1941b08a99c4e5f8869fc152ea5d578 100644 (file)
@@ -10319,7 +10319,7 @@ mips_reloc_against_discarded_section (bfd *output_bfd,
 
 /* Relocate a MIPS ELF section.  */
 
-bfd_boolean
+int
 _bfd_mips_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
                                bfd *input_bfd, asection *input_section,
                                bfd_byte *contents, Elf_Internal_Rela *relocs,
index 103f489d784dd031a0a2900b25855b13f6a17717..04a5c3ba3f1a085db74ec91ab47b395ca1d5d9f9 100644 (file)
@@ -56,7 +56,7 @@ extern bfd_boolean _bfd_mips_elf_always_size_sections
   (bfd *, struct bfd_link_info *);
 extern bfd_boolean _bfd_mips_elf_size_dynamic_sections
   (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 *,
    Elf_Internal_Rela *, Elf_Internal_Sym *, asection **);
 extern bfd_boolean _bfd_mips_elf_finish_dynamic_symbol
index c498d1cb70ba59d680cb1e708ff4273bdcf1f4b1..2173465e651040e36d0433b34d3e6d22dc540027 100644 (file)
@@ -2764,7 +2764,7 @@ gdop_relative_offset_ok (struct bfd_link_info *info,
 
 /* Relocate a SPARC ELF section.  */
 
-bfd_boolean
+int
 _bfd_sparc_elf_relocate_section (bfd *output_bfd,
                                 struct bfd_link_info *info,
                                 bfd *input_bfd,
index c2be84ac657f133799deb55b35be88ec4145db8c..18f5a60ce8b0fbbcce65eca8f4599498edca8ba1 100644 (file)
@@ -123,7 +123,7 @@ extern bfd_boolean _bfd_sparc_elf_new_section_hook
   (bfd *, asection *);
 extern bfd_boolean _bfd_sparc_elf_relax_section
   (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 *,
    Elf_Internal_Rela *, Elf_Internal_Sym *, asection **);
 extern bfd_boolean _bfd_sparc_elf_finish_dynamic_symbol
index 3544a3064f8bb5bf4019b7fdba468e0672b35185..ace959507675ef71fbc9dd2df1982b681613f6a8 100644 (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
    accordingly.  */
 
-bfd_boolean
+int
 tilegx_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
                             bfd *input_bfd, asection *input_section,
                             bfd_byte *contents, Elf_Internal_Rela *relocs,
index a6c4c28c36fc2f6063034c770856af7fdfef7fe3..ffcd59c85e6fd7f631b74f2f740d1cc8928fd7cc 100644 (file)
@@ -59,7 +59,7 @@ tilegx_elf_omit_section_dynsym (bfd *,
 extern bfd_boolean
 tilegx_elf_size_dynamic_sections (bfd *, struct bfd_link_info *);
 
-extern bfd_boolean
+extern int
 tilegx_elf_relocate_section (bfd *, struct bfd_link_info *,
                             bfd *, asection *,
                             bfd_byte *, Elf_Internal_Rela *,