Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/binutils/dist/bfd fix compilation issues.



details:   https://anonhg.NetBSD.org/src/rev/335644092655
branches:  trunk
changeset: 373075:335644092655
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Jan 16 00:11:50 2023 +0000

description:
fix compilation issues.

diffstat:

 external/gpl3/binutils/dist/bfd/elf32-m68k.c |   4 ++--
 external/gpl3/binutils/dist/bfd/elf32-vax.c  |  10 +++++-----
 external/gpl3/binutils/dist/bfd/elf64-mips.c |   8 ++++----
 external/gpl3/binutils/dist/bfd/elf64-ppc.c  |  10 +++++-----
 4 files changed, 16 insertions(+), 16 deletions(-)

diffs (142 lines):

diff -r 795a3e24ea3b -r 335644092655 external/gpl3/binutils/dist/bfd/elf32-m68k.c
--- a/external/gpl3/binutils/dist/bfd/elf32-m68k.c      Sun Jan 15 23:32:10 2023 +0000
+++ b/external/gpl3/binutils/dist/bfd/elf32-m68k.c      Mon Jan 16 00:11:50 2023 +0000
@@ -2804,7 +2804,7 @@
                       || ELF32_R_TYPE (rel->r_info) == R_68K_PC16
                       || ELF32_R_TYPE (rel->r_info) == R_68K_PC32))
                {
-                 if (info->warn_shared_textrel)
+                 if (bfd_link_textrel_check(info))
                    (*_bfd_error_handler)
                      (_("warning: dynamic relocation to `%s' in readonly section `%s'"),
                      h->root.root.string, sec->name); 
@@ -3258,7 +3258,7 @@
               s = s->next)
            if ((s->section->flags & SEC_READONLY) != 0)
              {
-               if (info->warn_shared_textrel)
+               if (bfd_link_textrel_check(info))
                  (*_bfd_error_handler)
                    (_("warning: dynamic relocation to `%s' in readonly section `%s'"),
                    h->root.root.string, s->section->name); 
diff -r 795a3e24ea3b -r 335644092655 external/gpl3/binutils/dist/bfd/elf32-vax.c
--- a/external/gpl3/binutils/dist/bfd/elf32-vax.c       Sun Jan 15 23:32:10 2023 +0000
+++ b/external/gpl3/binutils/dist/bfd/elf32-vax.c       Mon Jan 16 00:11:50 2023 +0000
@@ -497,21 +497,21 @@
 }
 
 /* Copy vax-specific data from one module to another */
-static bfd_boolean
+static bool
 elf32_vax_copy_private_bfd_data (bfd *ibfd, bfd *obfd)
 {
   flagword in_flags;
 
   if (bfd_get_flavour (ibfd) != bfd_target_elf_flavour
       || bfd_get_flavour (obfd) != bfd_target_elf_flavour)
-    return TRUE;
+    return true;
  
   in_flags = elf_elfheader (ibfd)->e_flags;
  
   elf_elfheader (obfd)->e_flags = in_flags;
-  elf_flags_init (obfd) = TRUE;
+  elf_flags_init (obfd) = true;
  
-  return TRUE;
+  return true;
 }
 
 /* Merge backend specific data from an object file to the output
@@ -752,7 +752,7 @@
 
                  if (sec->flags & SEC_READONLY)
                    {
-                       if (info->warn_shared_textrel)
+                       if (bfd_link_textrel_check(info))
                          (*_bfd_error_handler)
                            (_("warning: dynamic relocation to `%s' in readonly section `%s'"),
                             h ? h->root.root.string : "?", sec->name);
diff -r 795a3e24ea3b -r 335644092655 external/gpl3/binutils/dist/bfd/elf64-mips.c
--- a/external/gpl3/binutils/dist/bfd/elf64-mips.c      Sun Jan 15 23:32:10 2023 +0000
+++ b/external/gpl3/binutils/dist/bfd/elf64-mips.c      Mon Jan 16 00:11:50 2023 +0000
@@ -111,7 +111,7 @@
   (bfd *, asymbol *, bool, char **, bfd_vma *);
 static bool mips_elf64_object_p
   (bfd *);
-static bfd_boolean mips_elf64_is_local_label_name
+static bool mips_elf64_is_local_label_name
   (bfd *, const char *);
 static irix_compat_t elf64_mips_irix_compat
   (bfd *);
@@ -3370,7 +3370,7 @@
                              (Elf64_Mips_External_Rela *) dst);
 }
 
-/* Set the GP value for OUTPUT_BFD.  Returns FALSE if this is a
+/* Set the GP value for OUTPUT_BFD.  Returns false if this is a
    dangerous relocation.  */
 
 static bool
@@ -4520,11 +4520,11 @@
 }
 
 /* MIPS ELF local labels start with "$L".  */
-static bfd_boolean
+static bool
 mips_elf64_is_local_label_name (bfd *abfd, const char *name)
 {
   if (name[0] == '$' && name[1] == 'L')
-    return TRUE;
+    return true;
 
   /* We accept the generic ELF local label syntax as well.  */
   return _bfd_elf_is_local_label_name (abfd, name);
diff -r 795a3e24ea3b -r 335644092655 external/gpl3/binutils/dist/bfd/elf64-ppc.c
--- a/external/gpl3/binutils/dist/bfd/elf64-ppc.c       Sun Jan 15 23:32:10 2023 +0000
+++ b/external/gpl3/binutils/dist/bfd/elf64-ppc.c       Mon Jan 16 00:11:50 2023 +0000
@@ -8099,7 +8099,7 @@
   return true;
 }
 
-/* Return TRUE iff REL is a branch reloc with a global symbol matching
+/* Return true iff REL is a branch reloc with a global symbol matching
    any of HASH1, HASH2, HASH3, or HASH4.  */
 
 static bool
@@ -8720,7 +8720,7 @@
   return true;
 }
 
-/* Return TRUE iff INSN with a relocation of R_TYPE is one we expect
+/* Return true iff INSN with a relocation of R_TYPE is one we expect
    on a _LO variety toc/got reloc.  */
 
 static bool
@@ -10274,7 +10274,7 @@
                  srel->size += count * sizeof (Elf64_External_Rela);
                  if ((p->sec->output_section->flags & SEC_READONLY) != 0)
                    {
-                     if (info->warn_shared_textrel)
+                     if (bfd_link_textrel_check(info))
                        (*_bfd_error_handler)
                          (_("warning: dynamic relocation in readonly section `%s'"),
                          p->sec->output_section->name);
@@ -10620,7 +10620,7 @@
   return true;
 }
 
-/* Return TRUE if symbol should be hashed in the `.gnu.hash' section.  */
+/* Return true if symbol should be hashed in the `.gnu.hash' section.  */
 
 static bool
 ppc64_elf_hash_symbol (struct elf_link_hash_entry *h)
@@ -16470,7 +16470,7 @@
                  else
                    {
                      /* Tail calls don't need to worry about restoring TOC. */
-                     can_plt_call = TRUE;
+                     can_plt_call = true;
                    }
                }
 



Home | Main Index | Thread Index | Old Index