[patch] Fix comment typos.

Kazu Hirata kazu@hxi.com
Wed Oct 10 05:09:00 GMT 2001


Hi,

Attached is a patch to fix comment typos in bfd/*.[ch].  Comitted as
obvious.

Thanks,

Kazu Hirata

2001-10-10  Kazu Hirata  <kazu@hxi.com>

	* aout-encap.c: Fix comment typos.
	* aoutx.h: Likewise.
	* archive.c: Likewise.
	* bout.c: Likewise.
	* coff64-rs6000.c: Likewise.
	* coffcode.h: Likewise.
	* coffgen.c: Likewise.
	* cofflink.c: Likewise.
	* coff-mips.c: Likewise.
	* ecoff.c: Likewise.
	* elf32-m32r.c: Likewise.
	* libcoff-in.h: Likewise.
	* libecoff.h: Likewise.
	* libxcoff.h: Likewise.
	* nlm32-i386.c: Likewise.
	* pdp11.c: Likewise.
	* section.c: Likewise.
	* som.c: Likewise.
	* som.h: Likewise.
	* bfd-in2.h: Regenerate.
	* libcoff.h: Likewise.

Index: aout-encap.c
===================================================================
RCS file: /cvs/src/src/bfd/aout-encap.c,v
retrieving revision 1.5
diff -u -r1.5 aout-encap.c
--- aout-encap.c	2001/09/18 09:57:21	1.5
+++ aout-encap.c	2001/10/10 12:01:24
@@ -79,7 +79,7 @@
   return aout_32_some_aout_object_p (abfd, &exec, encap_realcallback);
 }
 
-/* Finish up the reading of a encapsulated-coff a.out file header */
+/* Finish up the reading of an encapsulated-coff a.out file header.  */
 const bfd_target *
 encap_real_callback (abfd)
      bfd *abfd;
Index: aoutx.h
===================================================================
RCS file: /cvs/src/src/bfd/aoutx.h,v
retrieving revision 1.26
diff -u -r1.26 aoutx.h
--- aoutx.h	2001/09/21 02:12:28	1.26
+++ aoutx.h	2001/10/10 12:01:25
@@ -930,7 +930,7 @@
     }
   else
     {
-      /* The VMA of the .bss section is set by the the VMA of the
+      /* The VMA of the .bss section is set by the VMA of the
          .data section plus the size of the .data section.  We may
          need to add padding bytes to make this true.  */
       pad = obj_bsssec (abfd)->vma - vma;
Index: archive.c
===================================================================
RCS file: /cvs/src/src/bfd/archive.c,v
retrieving revision 1.18
diff -u -r1.18 archive.c
--- archive.c	2001/09/19 05:33:11	1.18
+++ archive.c	2001/10/10 12:01:25
@@ -2145,7 +2145,7 @@
      int stridx;
 {
   /* The size of the ranlib is the number of exported symbols in the
-     archive * the number of bytes in a int, + an int for the count.  */
+     archive * the number of bytes in an int, + an int for the count.  */
   unsigned int ranlibsize = (symbol_count * 4) + 4;
   unsigned int stringsize = stridx;
   unsigned int mapsize = stringsize + ranlibsize;
Index: bfd-in2.h
===================================================================
RCS file: /cvs/src/src/bfd/bfd-in2.h,v
retrieving revision 1.124
diff -u -r1.124 bfd-in2.h
--- bfd-in2.h	2001/10/09 06:05:16	1.124
+++ bfd-in2.h	2001/10/10 12:01:26
@@ -1185,7 +1185,7 @@
   unsigned int linker_mark : 1;
 
   /* Another mark flag used by some of the linker backends.  Set for
-     output sections that have a input section.  */
+     output sections that have an input section.  */
   unsigned int linker_has_input : 1;
 
   /* A mark flag used by some linker backends for garbage collection.  */
Index: bout.c
===================================================================
RCS file: /cvs/src/src/bfd/bout.c,v
retrieving revision 1.10
diff -u -r1.10 bout.c
--- bout.c	2001/09/18 09:57:21	1.10
+++ bout.c	2001/10/10 12:01:26
@@ -626,7 +626,7 @@
 
     if (raw[7] & extern_mask)
       {
-	/* If this is set then the r_index is a index into the symbol table;
+	/* If this is set then the r_index is an index into the symbol table;
 	   if the bit is not set then r_index contains a section map.
 	   We either fill in the sym entry with a pointer to the symbol,
 	   or point to the correct section.  */
Index: coff64-rs6000.c
===================================================================
RCS file: /cvs/src/src/bfd/coff64-rs6000.c,v
retrieving revision 1.13
diff -u -r1.13 coff64-rs6000.c
--- coff64-rs6000.c	2001/09/20 23:30:34	1.13
+++ coff64-rs6000.c	2001/10/10 12:01:27
@@ -2012,7 +2012,7 @@
 
   size = bfd_coff_filhsz (abfd);
 
-  /* Don't think the small aout header can be used since some of the the
+  /* Don't think the small aout header can be used since some of the
      old elements have been reordered past the end of the old coff
      small aout size.  */
 
Index: coffcode.h
===================================================================
RCS file: /cvs/src/src/bfd/coffcode.h,v
retrieving revision 1.63
diff -u -r1.63 coffcode.h
--- coffcode.h	2001/09/21 14:25:08	1.63
+++ coffcode.h	2001/10/10 12:01:28
@@ -917,7 +917,7 @@
 		char *newname;
 		bfd_size_type amt;
 
-		/* This must the the second symbol with the
+		/* This must the second symbol with the
 		   section #.  It is the actual symbol name.
 		   Intel puts the two adjacent, but Alpha (at
 		   least) spreads them out.  */
Index: coffgen.c
===================================================================
RCS file: /cvs/src/src/bfd/coffgen.c,v
retrieving revision 1.26
diff -u -r1.26 coffgen.c
--- coffgen.c	2001/09/20 23:30:34	1.26
+++ coffgen.c	2001/10/10 12:01:28
@@ -1054,7 +1054,7 @@
       if (! obj_pe (abfd))
 	native->u.syment.n_value += symbol->section->output_section->vma;
 
-      /* Copy the any flags from the the file header into the symbol.
+      /* Copy the any flags from the file header into the symbol.
          FIXME: Why?  */
       {
 	coff_symbol_type *c = coff_symbol_from (abfd, symbol);
@@ -2468,7 +2468,7 @@
 	  if (! obj_pe (abfd))
 	    native->u.syment.n_value += symbol->section->output_section->vma;
 
-	  /* Copy the any flags from the the file header into the symbol.
+	  /* Copy the any flags from the file header into the symbol.
 	     FIXME: Why?  */
 	  native->u.syment.n_flags = bfd_asymbol_bfd (& csym->symbol)->flags;
 	}
Index: cofflink.c
===================================================================
RCS file: /cvs/src/src/bfd/cofflink.c,v
retrieving revision 1.29
diff -u -r1.29 cofflink.c
--- cofflink.c	2001/09/29 12:07:00	1.29
+++ cofflink.c	2001/10/10 12:01:28
@@ -442,7 +442,7 @@
 
 	  /* The Microsoft Visual C compiler does string pooling by
 	     hashing the constants to an internal symbol name, and
-	     relying on the the linker comdat support to discard
+	     relying on the linker comdat support to discard
 	     duplicate names.  However, if one string is a literal and
 	     one is a data initializer, one will end up in the .data
 	     section and one will end up in the .rdata section.  The
Index: coff-mips.c
===================================================================
RCS file: /cvs/src/src/bfd/coff-mips.c,v
retrieving revision 1.12
diff -u -r1.12 coff-mips.c
--- coff-mips.c	2001/09/18 09:57:22	1.12
+++ coff-mips.c	2001/10/10 12:01:29
@@ -366,7 +366,7 @@
 #define MIPS_HOWTO_COUNT \
   (sizeof mips_howto_table / sizeof mips_howto_table[0])
 
-/* When the linker is doing relaxing, it may change a external PCREL16
+/* When the linker is doing relaxing, it may change an external PCREL16
    reloc.  This typically represents an instruction like
        bal foo
    We change it to
Index: ecoff.c
===================================================================
RCS file: /cvs/src/src/bfd/ecoff.c,v
retrieving revision 1.12
diff -u -r1.12 ecoff.c
--- ecoff.c	2001/09/29 12:07:00	1.12
+++ ecoff.c	2001/10/10 12:01:30
@@ -4758,7 +4758,7 @@
 
   rel.addend = 0;
 
-  /* Move the information into a internal_reloc structure.  */
+  /* Move the information into an internal_reloc structure.  */
   in.r_vaddr = (rel.address
 		+ bfd_get_section_vma (output_bfd, output_section));
   in.r_type = rel.howto->type;
Index: elf32-m32r.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-m32r.c,v
retrieving revision 1.16
diff -u -r1.16 elf32-m32r.c
--- elf32-m32r.c	2001/09/20 23:30:35	1.16
+++ elf32-m32r.c	2001/10/10 12:01:30
@@ -605,7 +605,7 @@
       return bfd_reloc_ok;
     }
 
-  /* Now do the the reloc in the usual way.
+  /* Now do the reloc in the usual way.
      ??? It would be nice to call bfd_elf_generic_reloc here,
      but we have partial_inplace == TRUE.  bfd_elf_generic_reloc will
      pass the handling back to bfd_install_relocation which will install
Index: libcoff.h
===================================================================
RCS file: /cvs/src/src/bfd/libcoff.h,v
retrieving revision 1.22
diff -u -r1.22 libcoff.h
--- libcoff.h	2001/10/01 14:03:35	1.22
+++ libcoff.h	2001/10/10 12:01:30
@@ -177,7 +177,7 @@
 
 #define xcoff_data(abfd) ((abfd)->tdata.xcoff_obj_data)
 
-/* We take the address of the first element of a asymbol to ensure that the
+/* We take the address of the first element of an asymbol to ensure that the
  * macro is only ever applied to an asymbol.  */
 #define coffsymbol(asymbol) ((coff_symbol_type *)(&((asymbol)->the_bfd)))
 
Index: libcoff-in.h
===================================================================
RCS file: /cvs/src/src/bfd/libcoff-in.h,v
retrieving revision 1.13
diff -u -r1.13 libcoff-in.h
--- libcoff-in.h	2001/10/01 14:03:35	1.13
+++ libcoff-in.h	2001/10/10 12:01:30
@@ -173,7 +173,7 @@
 
 #define xcoff_data(abfd) ((abfd)->tdata.xcoff_obj_data)
 
-/* We take the address of the first element of a asymbol to ensure that the
+/* We take the address of the first element of an asymbol to ensure that the
  * macro is only ever applied to an asymbol.  */
 #define coffsymbol(asymbol) ((coff_symbol_type *)(&((asymbol)->the_bfd)))
 
Index: libecoff.h
===================================================================
RCS file: /cvs/src/src/bfd/libecoff.h,v
retrieving revision 1.8
diff -u -r1.8 libecoff.h
--- libecoff.h	2001/09/18 09:57:25	1.8
+++ libecoff.h	2001/10/10 12:01:31
@@ -166,7 +166,7 @@
   PTR native;
 } ecoff_symbol_type;
 
-/* We take the address of the first element of a asymbol to ensure that the
+/* We take the address of the first element of an asymbol to ensure that the
    macro is only ever applied to an asymbol.  */
 #define ecoffsymbol(asymbol) ((ecoff_symbol_type *) (&((asymbol)->the_bfd)))
 
Index: libxcoff.h
===================================================================
RCS file: /cvs/src/src/bfd/libxcoff.h,v
retrieving revision 1.4
diff -u -r1.4 libxcoff.h
--- libxcoff.h	2001/09/18 09:57:25	1.4
+++ libxcoff.h	2001/10/10 12:01:31
@@ -49,7 +49,7 @@
   void (* _xcoff_swap_ldrel_in)(bfd *, const PTR, struct internal_ldrel *);
   void (* _xcoff_swap_ldrel_out)(bfd *, const struct internal_ldrel *, PTR);
 
-  /* size of the the external struct */
+  /* size of the external struct */
   unsigned int _xcoff_ldhdrsz;
   unsigned int _xcoff_ldsymsz;
   unsigned int _xcoff_ldrelsz;
Index: nlm32-i386.c
===================================================================
RCS file: /cvs/src/src/bfd/nlm32-i386.c,v
retrieving revision 1.4
diff -u -r1.4 nlm32-i386.c
--- nlm32-i386.c	2001/09/18 09:57:25	1.4
+++ nlm32-i386.c	2001/10/10 12:01:31
@@ -234,7 +234,7 @@
   return true;
 }
 
-/* I want to be able to use objcopy to turn a i386 a.out or COFF file
+/* I want to be able to use objcopy to turn an i386 a.out or COFF file
    into a NetWare i386 module.  That means that the relocs from the
    source file have to be mapped into relocs that apply to the target
    file.  This function is called by nlm_set_section_contents to give
Index: pdp11.c
===================================================================
RCS file: /cvs/src/src/bfd/pdp11.c,v
retrieving revision 1.9
diff -u -r1.9 pdp11.c
--- pdp11.c	2001/10/02 05:58:41	1.9
+++ pdp11.c	2001/10/10 12:01:31
@@ -1104,7 +1104,7 @@
     }
   else
     {
-      /* The VMA of the .bss section is set by the the VMA of the
+      /* The VMA of the .bss section is set by the VMA of the
          .data section plus the size of the .data section.  We may
          need to add padding bytes to make this true.  */
       pad = obj_bsssec (abfd)->vma - vma;
Index: section.c
===================================================================
RCS file: /cvs/src/src/bfd/section.c,v
retrieving revision 1.37
diff -u -r1.37 section.c
--- section.c	2001/10/09 06:05:16	1.37
+++ section.c	2001/10/10 12:01:32
@@ -379,7 +379,7 @@
 .  unsigned int linker_mark : 1;
 .
 .  {* Another mark flag used by some of the linker backends.  Set for
-.     output sections that have a input section.  *}
+.     output sections that have an input section.  *}
 .  unsigned int linker_has_input : 1;
 .
 .  {* A mark flag used by some linker backends for garbage collection.  *}
Index: som.c
===================================================================
RCS file: /cvs/src/src/bfd/som.c,v
retrieving revision 1.25
diff -u -r1.25 som.c
--- som.c	2001/10/05 21:55:11	1.25
+++ som.c	2001/10/10 12:01:33
@@ -2960,7 +2960,7 @@
 		  break;
 
 		case R_END_TRY:
-		  /* The end of a exception handling region.  The reloc's
+		  /* The end of an exception handling region.  The reloc's
 		     addend contains the offset of the exception handling
 		     code.  */
 		  if (bfd_reloc->addend == 0)
Index: som.h
===================================================================
RCS file: /cvs/src/src/bfd/som.h,v
retrieving revision 1.4
diff -u -r1.4 som.h
--- som.h	2001/10/05 21:55:12	1.4
+++ som.h	2001/10/10 12:01:33
@@ -107,7 +107,7 @@
   {
     /* All the magic information about an executable which lives
        in the private BFD structure and needs to be copied from
-       the input bfd to the output bfd during a objcopy/strip.  */
+       the input bfd to the output bfd during an objcopy/strip.  */
     struct som_exec_data *exec_data;
 
     /* These three fields are only used when writing files and are



More information about the Binutils mailing list