Module Name:    src
Committed By:   christos
Date:           Mon Jan 16 00:11:50 UTC 2023

Modified Files:
        src/external/gpl3/binutils/dist/bfd: elf32-m68k.c elf32-vax.c
            elf64-mips.c elf64-ppc.c

Log Message:
fix compilation issues.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/binutils/dist/bfd/elf32-m68k.c
cvs rdiff -u -r1.19 -r1.20 src/external/gpl3/binutils/dist/bfd/elf32-vax.c
cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/binutils/dist/bfd/elf64-mips.c
cvs rdiff -u -r1.17 -r1.18 src/external/gpl3/binutils/dist/bfd/elf64-ppc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/bfd/elf32-m68k.c
diff -u src/external/gpl3/binutils/dist/bfd/elf32-m68k.c:1.14 src/external/gpl3/binutils/dist/bfd/elf32-m68k.c:1.15
--- src/external/gpl3/binutils/dist/bfd/elf32-m68k.c:1.14	Sat Dec 24 15:17:04 2022
+++ src/external/gpl3/binutils/dist/bfd/elf32-m68k.c	Sun Jan 15 19:11:50 2023
@@ -2804,7 +2804,7 @@ elf_m68k_check_relocs (bfd *abfd,
 		       || 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 @@ elf_m68k_discard_copies (struct elf_link
 	       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); 

Index: src/external/gpl3/binutils/dist/bfd/elf32-vax.c
diff -u src/external/gpl3/binutils/dist/bfd/elf32-vax.c:1.19 src/external/gpl3/binutils/dist/bfd/elf32-vax.c:1.20
--- src/external/gpl3/binutils/dist/bfd/elf32-vax.c:1.19	Sat Dec 24 15:17:04 2022
+++ src/external/gpl3/binutils/dist/bfd/elf32-vax.c	Sun Jan 15 19:11:50 2023
@@ -497,21 +497,21 @@ elf32_vax_set_private_flags (bfd *abfd, 
 }
 
 /* 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 @@ elf_vax_check_relocs (bfd *abfd, struct 
 
 		  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);

Index: src/external/gpl3/binutils/dist/bfd/elf64-mips.c
diff -u src/external/gpl3/binutils/dist/bfd/elf64-mips.c:1.11 src/external/gpl3/binutils/dist/bfd/elf64-mips.c:1.12
--- src/external/gpl3/binutils/dist/bfd/elf64-mips.c:1.11	Sat Dec 24 15:17:04 2022
+++ src/external/gpl3/binutils/dist/bfd/elf64-mips.c	Sun Jan 15 19:11:50 2023
@@ -111,7 +111,7 @@ static bfd_reloc_status_type mips_elf64_
   (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 @@ mips_elf64_be_swap_reloca_out (bfd *abfd
 			      (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_elf64_object_p (bfd *abfd)
 }
 
 /* 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);

Index: src/external/gpl3/binutils/dist/bfd/elf64-ppc.c
diff -u src/external/gpl3/binutils/dist/bfd/elf64-ppc.c:1.17 src/external/gpl3/binutils/dist/bfd/elf64-ppc.c:1.18
--- src/external/gpl3/binutils/dist/bfd/elf64-ppc.c:1.17	Sat Dec 24 15:17:04 2022
+++ src/external/gpl3/binutils/dist/bfd/elf64-ppc.c	Sun Jan 15 19:11:50 2023
@@ -8099,7 +8099,7 @@ ppc64_elf_tls_setup (struct bfd_link_inf
   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 @@ adjust_toc_syms (struct elf_link_hash_en
   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 @@ ppc64_elf_size_dynamic_sections (bfd *ou
 		  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 @@ ppc64_elf_size_dynamic_sections (bfd *ou
   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 @@ ppc64_elf_relocate_section (bfd *output_
 		  else
 		    {
 		      /* Tail calls don't need to worry about restoring TOC. */
-		      can_plt_call = TRUE;
+		      can_plt_call = true;
 		    }
 		}
 

Reply via email to