summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2001-10-10 12:08:29 +0000
committerKazu Hirata <kazu@codesourcery.com>2001-10-10 12:08:29 +0000
commit08da05b004779169c90558b82fe2050d2da5342f (patch)
treec04673f09e696dcb45288af2c4ae79eab137c081 /bfd
parent079e9a2ffe5141cc3e2a7af21c77f3a2f2d1ce49 (diff)
* 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.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog24
-rw-r--r--bfd/aout-encap.c2
-rw-r--r--bfd/aoutx.h2
-rw-r--r--bfd/archive.c2
-rw-r--r--bfd/bfd-in2.h2
-rw-r--r--bfd/bout.c2
-rw-r--r--bfd/coff-mips.c2
-rw-r--r--bfd/coff64-rs6000.c2
-rw-r--r--bfd/coffcode.h2
-rw-r--r--bfd/coffgen.c4
-rw-r--r--bfd/cofflink.c2
-rw-r--r--bfd/ecoff.c2
-rw-r--r--bfd/elf32-m32r.c2
-rw-r--r--bfd/libcoff-in.h2
-rw-r--r--bfd/libcoff.h2
-rw-r--r--bfd/libecoff.h2
-rw-r--r--bfd/libxcoff.h2
-rw-r--r--bfd/nlm32-i386.c2
-rw-r--r--bfd/pdp11.c2
-rw-r--r--bfd/section.c2
-rw-r--r--bfd/som.c2
-rw-r--r--bfd/som.h2
22 files changed, 46 insertions, 22 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 800569d654..80ede748ad 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,27 @@
+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.
+
2001-10-10 Alan Modra <amodra@bigpond.net.au>
* elf.c (elf_map_symbols): Don't create new section symbols; Use
diff --git a/bfd/aout-encap.c b/bfd/aout-encap.c
index 921bdd349c..84c46c6075 100644
--- a/bfd/aout-encap.c
+++ b/bfd/aout-encap.c
@@ -79,7 +79,7 @@ encap_object_p (abfd)
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;
diff --git a/bfd/aoutx.h b/bfd/aoutx.h
index c619e0e74d..0a3c05ad6e 100644
--- a/bfd/aoutx.h
+++ b/bfd/aoutx.h
@@ -930,7 +930,7 @@ adjust_o_magic (abfd, execp)
}
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;
diff --git a/bfd/archive.c b/bfd/archive.c
index f158ae61f0..04be6a9032 100644
--- a/bfd/archive.c
+++ b/bfd/archive.c
@@ -2145,7 +2145,7 @@ coff_write_armap (arch, elength, map, symbol_count, stridx)
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;
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index fcdd1db631..854dd0ebc7 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -1185,7 +1185,7 @@ typedef struct sec
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. */
diff --git a/bfd/bout.c b/bfd/bout.c
index 012d844bbd..13e4f04cb9 100644
--- a/bfd/bout.c
+++ b/bfd/bout.c
@@ -626,7 +626,7 @@ b_out_slurp_reloc_table (abfd, asect, symbols)
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. */
diff --git a/bfd/coff-mips.c b/bfd/coff-mips.c
index 6e9cc6af3c..bb57247d78 100644
--- a/bfd/coff-mips.c
+++ b/bfd/coff-mips.c
@@ -366,7 +366,7 @@ static reloc_howto_type mips_howto_table[] =
#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
diff --git a/bfd/coff64-rs6000.c b/bfd/coff64-rs6000.c
index 4d697deffb..bc972418db 100644
--- a/bfd/coff64-rs6000.c
+++ b/bfd/coff64-rs6000.c
@@ -2012,7 +2012,7 @@ xcoff64_sizeof_headers (abfd, reloc)
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. */
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 7c0f3e1277..c2a2950a43 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -917,7 +917,7 @@ handle_COMDAT (abfd, sec_flags, hdr, name, section)
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. */
diff --git a/bfd/coffgen.c b/bfd/coffgen.c
index 4a06c68a00..4957c141f6 100644
--- a/bfd/coffgen.c
+++ b/bfd/coffgen.c
@@ -1054,7 +1054,7 @@ coff_write_alien_symbol (abfd, symbol, written, string_size_p,
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 @@ bfd_coff_set_symbol_class (abfd, symbol, class)
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;
}
diff --git a/bfd/cofflink.c b/bfd/cofflink.c
index 594b169bb2..00a52890c0 100644
--- a/bfd/cofflink.c
+++ b/bfd/cofflink.c
@@ -442,7 +442,7 @@ coff_link_add_symbols (abfd, info)
/* 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
diff --git a/bfd/ecoff.c b/bfd/ecoff.c
index 4e0e9533b9..1e3b6a97a9 100644
--- a/bfd/ecoff.c
+++ b/bfd/ecoff.c
@@ -4758,7 +4758,7 @@ ecoff_reloc_link_order (output_bfd, info, output_section, link_order)
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;
diff --git a/bfd/elf32-m32r.c b/bfd/elf32-m32r.c
index 830cd669b2..eb2237f19a 100644
--- a/bfd/elf32-m32r.c
+++ b/bfd/elf32-m32r.c
@@ -605,7 +605,7 @@ m32r_elf_generic_reloc (input_bfd, reloc_entry, symbol, data,
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
diff --git a/bfd/libcoff-in.h b/bfd/libcoff-in.h
index 17962495ad..bbccbbaa93 100644
--- a/bfd/libcoff-in.h
+++ b/bfd/libcoff-in.h
@@ -173,7 +173,7 @@ struct xcoff_tdata
#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)))
diff --git a/bfd/libcoff.h b/bfd/libcoff.h
index e0c77d9a2d..f26a692bee 100644
--- a/bfd/libcoff.h
+++ b/bfd/libcoff.h
@@ -177,7 +177,7 @@ struct xcoff_tdata
#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)))
diff --git a/bfd/libecoff.h b/bfd/libecoff.h
index 957ff1bf9c..5f9e016b9f 100644
--- a/bfd/libecoff.h
+++ b/bfd/libecoff.h
@@ -166,7 +166,7 @@ typedef struct ecoff_symbol_struct
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)))
diff --git a/bfd/libxcoff.h b/bfd/libxcoff.h
index 3c2532a66b..b0ac0501f5 100644
--- a/bfd/libxcoff.h
+++ b/bfd/libxcoff.h
@@ -49,7 +49,7 @@ struct xcoff_backend_data_rec
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;
diff --git a/bfd/nlm32-i386.c b/bfd/nlm32-i386.c
index a33013499b..32b05b4eb0 100644
--- a/bfd/nlm32-i386.c
+++ b/bfd/nlm32-i386.c
@@ -234,7 +234,7 @@ nlm_i386_write_import (abfd, sec, rel)
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
diff --git a/bfd/pdp11.c b/bfd/pdp11.c
index 28739501d5..265c159bd3 100644
--- a/bfd/pdp11.c
+++ b/bfd/pdp11.c
@@ -1104,7 +1104,7 @@ adjust_o_magic (abfd, execp)
}
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;
diff --git a/bfd/section.c b/bfd/section.c
index 702f05a72a..b2a366a12b 100644
--- a/bfd/section.c
+++ b/bfd/section.c
@@ -379,7 +379,7 @@ CODE_FRAGMENT
. 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. *}
diff --git a/bfd/som.c b/bfd/som.c
index 95735f5955..39a4d5deb6 100644
--- a/bfd/som.c
+++ b/bfd/som.c
@@ -2960,7 +2960,7 @@ som_write_fixups (abfd, current_offset, total_reloc_sizep)
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)
diff --git a/bfd/som.h b/bfd/som.h
index 158c96f918..94f03ab9f1 100644
--- a/bfd/som.h
+++ b/bfd/som.h
@@ -107,7 +107,7 @@ struct somdata
{
/* 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