From de194d8575765da6c7905d09b8675c59fad035e9 Mon Sep 17 00:00:00 2001 From: Yuri Chornovian Date: Tue, 18 Jul 2017 16:58:14 +0100 Subject: [PATCH] Fix spelling typos. --- bfd/ChangeLog | 25 +++ bfd/coff-sh.c | 2 +- bfd/compress.c | 2 +- bfd/cpu-pdp11.c | 2 +- bfd/ecofflink.c | 2 +- bfd/elf-m10300.c | 2 +- bfd/elf.c | 2 +- bfd/elf32-arm.c | 2 +- bfd/elf32-m68k.c | 2 +- bfd/elf32-nds32.c | 6 +- bfd/elf32-ppc.c | 2 +- bfd/elf32-sh.c | 2 +- bfd/elf32-v850.c | 2 +- bfd/elf64-ppc.c | 4 +- bfd/elf64-x86-64.c | 4 +- bfd/elflink.c | 2 +- bfd/elfnn-aarch64.c | 2 +- bfd/elfxx-mips.c | 6 +- bfd/som.c | 2 +- bfd/sunos.c | 2 +- bfd/vms-alpha.c | 2 +- bfd/xcofflink.c | 2 +- binutils/ChangeLog | 8 + binutils/coffgrok.c | 6 +- binutils/readelf.c | 2 +- binutils/stabs.c | 2 +- binutils/testsuite/binutils-all/objcopy.exp | 2 +- gas/ChangeLog | 14 ++ gas/config/tc-arm.c | 4 +- gas/config/tc-mips.c | 4 +- gas/config/tc-msp430.c | 26 +-- gas/config/tc-sh64.c | 2 +- gas/config/tc-tic4x.c | 2 +- gas/ecoff.c | 2 +- gas/testsuite/gas/arm/ldr-bad.l | 4 +- gas/testsuite/gas/arm/ldr-t-bad.l | 4 +- gas/testsuite/gas/msp430/errata_warns.l | 68 ++++---- gas/testsuite/gas/tic54x/opcodes.s | 2 +- gold/ChangeLog | 9 ++ gold/aarch64.cc | 4 +- gold/arm.cc | 8 +- gold/layout.cc | 2 +- gold/powerpc.cc | 2 +- gold/x86_64.cc | 2 +- include/ChangeLog | 12 ++ include/aout/adobe.h | 167 ++++++++++---------- include/aout/aout64.h | 6 +- include/aout/hp300hpux.h | 54 +++---- include/elf/hppa.h | 2 +- include/gdb/remote-sim.h | 2 +- include/libiberty.h | 2 +- include/mach-o/arm.h | 2 +- include/opcode/v850.h | 4 +- ld/ChangeLog | 6 + ld/ld.texinfo | 2 +- ld/testsuite/ld-elfcomm/elfcomm.exp | 2 +- opcodes/ChangeLog | 6 + opcodes/aarch64-opc.c | 2 +- opcodes/i386-dis.c | 2 +- 59 files changed, 307 insertions(+), 222 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f9eb98f4f32..bdffccf63f5 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,28 @@ +2017-07-18 Nick Clifton + + PR 21775 + * coff-sh.c: Fix spelling typos. + * compress.c: Likewise. + * cpu-pdp11.c: Likewise. + * ecofflink.c: Likewise. + * elf-m10300.c: Likewise. + * elf.c: Likewise. + * elf32-arm.c: Likewise. + * elf32-m68k.c: Likewise. + * elf32-nds32.c: Likewise. + * elf32-ppc.c: Likewise. + * elf32-sh.c: Likewise. + * elf32-v850.c: Likewise. + * elf64-ppc.c: Likewise. + * elf64-x86-64.c: Likewise. + * elflink.c: Likewise. + * elfnn-aarch64.c: Likewise. + * elfxx-mips.c: Likewise. + * som.c: Likewise. + * sunos.c: Likewise. + * vms-alpha.c: Likewise. + * xcofflink.c: Likewise. + 2017-07-18 Nick Clifton PR binutils/21781 diff --git a/bfd/coff-sh.c b/bfd/coff-sh.c index 1c483cb3e44..8170152b739 100644 --- a/bfd/coff-sh.c +++ b/bfd/coff-sh.c @@ -1083,7 +1083,7 @@ sh_relax_delete_bytes (bfd *abfd, contents = coff_section_data (abfd, sec)->contents; - /* The deletion must stop at the next ALIGN reloc for an aligment + /* The deletion must stop at the next ALIGN reloc for an alignment power larger than the number of bytes we are deleting. */ irelalign = NULL; diff --git a/bfd/compress.c b/bfd/compress.c index a9dcbc05f53..d06f2fe28fa 100644 --- a/bfd/compress.c +++ b/bfd/compress.c @@ -106,7 +106,7 @@ bfd_compress_section_contents (bfd *abfd, sec_ptr sec, if (orig_compression_header_size == 0) { /* Convert it from .zdebug* section. Get the uncompressed - size first. We need to substract the 12-byte overhead in + size first. We need to subtract the 12-byte overhead in .zdebug* section. Set orig_compression_header_size to the 12-bye overhead. */ orig_compression_header_size = 12; diff --git a/bfd/cpu-pdp11.c b/bfd/cpu-pdp11.c index 87c6aa94602..25e20bb6b14 100644 --- a/bfd/cpu-pdp11.c +++ b/bfd/cpu-pdp11.c @@ -31,7 +31,7 @@ const bfd_arch_info_type bfd_pdp11_arch = 0, /* only 1 machine */ "pdp11", "pdp11", - 1, /* aligment = 16 bit */ + 1, /* alignment = 16 bit */ TRUE, /* the one and only */ bfd_default_compatible, bfd_default_scan, diff --git a/bfd/ecofflink.c b/bfd/ecofflink.c index c3c2e9421b6..e1f18046346 100644 --- a/bfd/ecofflink.c +++ b/bfd/ecofflink.c @@ -898,7 +898,7 @@ bfd_ecoff_debug_accumulate (void * handle, if (! bfd_link_relocatable (info)) { - /* When are are hashing strings, we lie about the number of + /* When we are hashing strings, we lie about the number of strings attached to each FDR. We need to set cbSs because some versions of dbx apparently use it to decide how much of the string table to read in. */ diff --git a/bfd/elf-m10300.c b/bfd/elf-m10300.c index 97301c8849d..9214a5745cb 100644 --- a/bfd/elf-m10300.c +++ b/bfd/elf-m10300.c @@ -2416,7 +2416,7 @@ mn10300_elf_relax_delete_bytes (bfd *abfd, if (ELF32_R_TYPE ((irelend - 1)->r_info) == (int) R_MN10300_ALIGN) --irelend; - /* The deletion must stop at the next ALIGN reloc for an aligment + /* The deletion must stop at the next ALIGN reloc for an alignment power larger than, or not a multiple of, the number of bytes we are deleting. */ for (; irel < irelend; irel++) diff --git a/bfd/elf.c b/bfd/elf.c index a9379303148..b99e297e845 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -5115,7 +5115,7 @@ elf_sort_sections (const void *arg1, const void *arg2) else adjustment = vma_offset - off_offset; - which can can be collapsed into the expression below. */ + which can be collapsed into the expression below. */ static file_ptr vma_page_aligned_bias (bfd_vma vma, ufile_ptr off, bfd_vma maxpagesize) diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c index 4277168b9bd..e8c346d869e 100644 --- a/bfd/elf32-arm.c +++ b/bfd/elf32-arm.c @@ -14037,7 +14037,7 @@ elf32_arm_merge_eabi_attributes (bfd *ibfd, struct bfd_link_info *info) if (in_attr[Tag_MPextension_use].i != in_attr[i].i) { _bfd_error_handler - (_("%B has has both the current and legacy " + (_("%B has both the current and legacy " "Tag_MPextension_use attributes"), ibfd); result = FALSE; diff --git a/bfd/elf32-m68k.c b/bfd/elf32-m68k.c index 5b64589b21d..ab122feb8b8 100644 --- a/bfd/elf32-m68k.c +++ b/bfd/elf32-m68k.c @@ -703,7 +703,7 @@ struct elf_m68k_got_entry struct { /* Offset from the start of .got section. To calculate offset relative - to GOT pointer one should substract got->offset from this value. */ + to GOT pointer one should subtract got->offset from this value. */ bfd_vma offset; /* Pointer to the next GOT entry for this global symbol. diff --git a/bfd/elf32-nds32.c b/bfd/elf32-nds32.c index d6b58aaed17..b5f59e76464 100644 --- a/bfd/elf32-nds32.c +++ b/bfd/elf32-nds32.c @@ -11509,12 +11509,12 @@ nds32_relax_adjust_label (bfd *abfd, asection *sec, of instruction a time. It recognizes three types of relocations. - 1. R_NDS32_LABEL - a aligment. + 1. R_NDS32_LABEL - a alignment. 2. R_NDS32_INSN16 - relax a 32-bit instruction to 16-bit. 3. is_16bit_NOP () - remove a 16-bit instruction. */ - /* TODO: It seems currently implementation only support 4-byte aligment. - We should handle any-aligment. */ + /* TODO: It seems currently implementation only support 4-byte alignment. + We should handle any-alignment. */ Elf_Internal_Rela *insn_rel = NULL, *label_rel = NULL, *irel; Elf_Internal_Rela *tmp_rel, *tmp2_rel = NULL; diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c index 6d8b5020f54..f32ba9bf6ad 100644 --- a/bfd/elf32-ppc.c +++ b/bfd/elf32-ppc.c @@ -134,7 +134,7 @@ static const bfd_vma ppc_elf_vxworks_pic_plt0_entry #define VXWORKS_PLT_NON_JMP_SLOT_RELOCS 3 /* The number of relocations in the PLTResolve slot. */ #define VXWORKS_PLTRESOLVE_RELOCS 2 -/* The number of relocations in the PLTResolve slot when when creating +/* The number of relocations in the PLTResolve slot when creating a shared library. */ #define VXWORKS_PLTRESOLVE_RELOCS_SHLIB 0 diff --git a/bfd/elf32-sh.c b/bfd/elf32-sh.c index dfc16a275a9..8f915799854 100644 --- a/bfd/elf32-sh.c +++ b/bfd/elf32-sh.c @@ -913,7 +913,7 @@ sh_elf_relax_delete_bytes (bfd *abfd, asection *sec, bfd_vma addr, contents = elf_section_data (sec)->this_hdr.contents; - /* The deletion must stop at the next ALIGN reloc for an aligment + /* The deletion must stop at the next ALIGN reloc for an alignment power larger than the number of bytes we are deleting. */ irelalign = NULL; diff --git a/bfd/elf32-v850.c b/bfd/elf32-v850.c index a9c56cbfa55..f33a5206390 100644 --- a/bfd/elf32-v850.c +++ b/bfd/elf32-v850.c @@ -2525,7 +2525,7 @@ v850_elf_merge_notes (bfd * ibfd, bfd *obfd) { _bfd_error_handler /* xgettext:c-format */ - (_("error: %B needs 8-byte aligment but %B is set for 4-byte alignment"), + (_("error: %B needs 8-byte alignment but %B is set for 4-byte alignment"), ibfd, obfd); result = FALSE; } diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 70ad6c5a69b..99033738e9d 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -8904,7 +8904,7 @@ ppc64_elf_tls_optimize (struct bfd_link_info *info) the values of any global symbols in a toc section that has been edited. Globals in toc sections should be a rarity, so this function sets a flag if any are found in toc sections other than the one just - edited, so that futher hash table traversals can be avoided. */ + edited, so that further hash table traversals can be avoided. */ struct adjust_toc_info { @@ -9400,7 +9400,7 @@ ppc64_elf_edit_toc (struct bfd_link_info *info) /* Merge the used and skip arrays. Assume that TOC doublewords not appearing as either used or unused belong - to to an entry more than one doubleword in size. */ + to an entry more than one doubleword in size. */ for (drop = skip, keep = used, last = 0, some_unused = 0; drop < skip + (toc->size + 7) / 8; ++drop, ++keep) diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c index 3658df45623..a13af126cac 100644 --- a/bfd/elf64-x86-64.c +++ b/bfd/elf64-x86-64.c @@ -611,7 +611,7 @@ static const bfd_byte elf_x86_64_lazy_ibt_plt_entry[LAZY_PLT_ENTRY_SIZE] = }; /* The first entry in the x32 IBT-enabled lazy procedure linkage table - is the the same as the normal lazy PLT. Subsequent entries for an + is the same as the normal lazy PLT. Subsequent entries for an x32 IBT-enabled lazy procedure linkage table look like this. */ static const bfd_byte elf_x32_lazy_ibt_plt_entry[LAZY_PLT_ENTRY_SIZE] = @@ -4669,7 +4669,7 @@ do_ifunc_pointer: case R_X86_64_GOTPCREL64: /* Use global offset table entry as symbol value. */ case R_X86_64_GOTPLT64: - /* This is obsolete and treated the the same as GOT64. */ + /* This is obsolete and treated the same as GOT64. */ base_got = htab->elf.sgot; if (htab->elf.sgot == NULL) diff --git a/bfd/elflink.c b/bfd/elflink.c index 6010b616bc8..eff53acbbe3 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -2935,7 +2935,7 @@ _bfd_elf_adjust_dynamic_copy (struct bfd_link_info *info, bfd_vma mask; asection *sec = h->root.u.def.section; - /* The section aligment of definition is the maximum alignment + /* The section alignment of the definition is the maximum alignment requirement of symbols defined in the section. Since we don't know the symbol alignment requirement, we start with the maximum alignment and check low bits of the symbol address diff --git a/bfd/elfnn-aarch64.c b/bfd/elfnn-aarch64.c index b28e8d8295c..de7b627004f 100644 --- a/bfd/elfnn-aarch64.c +++ b/bfd/elfnn-aarch64.c @@ -3281,7 +3281,7 @@ aarch64_mem_op_p (uint32_t insn, unsigned int *rt, unsigned int *rt2, uint32_t v = 0; uint32_t opc_v = 0; - /* Bail out quickly if INSN doesn't fall into the the load-store + /* Bail out quickly if INSN doesn't fall into the load-store encoding space. */ if (!AARCH64_LDST (insn)) return FALSE; diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index f270cdb3688..fddf68c8162 100644 --- a/bfd/elfxx-mips.c +++ b/bfd/elfxx-mips.c @@ -5456,7 +5456,7 @@ mips_elf_calculate_relocation (bfd *abfd, bfd *input_bfd, { /* If this is a dynamic link, we should have created a _DYNAMIC_LINK symbol or _DYNAMIC_LINKING(for normal mips) symbol - in in _bfd_mips_elf_create_dynamic_sections. + in _bfd_mips_elf_create_dynamic_sections. Otherwise, we should define the symbol with a value of 0. FIXME: It should probably get into the symbol table somehow as well. */ @@ -6955,7 +6955,7 @@ _bfd_mips_elf_symbol_processing (bfd *abfd, asymbol *asym) { asym->section = section; /* MIPS_TEXT is a bit special, the address is not an offset - to the base of the .text section. So substract the section + to the base of the .text section. So subtract the section base address to make it an offset. */ asym->value -= section->vma; } @@ -6970,7 +6970,7 @@ _bfd_mips_elf_symbol_processing (bfd *abfd, asymbol *asym) { asym->section = section; /* MIPS_DATA is a bit special, the address is not an offset - to the base of the .data section. So substract the section + to the base of the .data section. So subtract the section base address to make it an offset. */ asym->value -= section->vma; } diff --git a/bfd/som.c b/bfd/som.c index 98c4124bbad..49f786080b8 100644 --- a/bfd/som.c +++ b/bfd/som.c @@ -5012,7 +5012,7 @@ som_set_reloc_info (unsigned char *fixup, push (v); } else - /* An operator. Pop two two values from the stack and + /* An operator. Pop two values from the stack and use them as operands to the given operation. Push the result of the operation back on the stack. */ switch (c) diff --git a/bfd/sunos.c b/bfd/sunos.c index 10f43549c92..6cfc26e44f7 100644 --- a/bfd/sunos.c +++ b/bfd/sunos.c @@ -2314,7 +2314,7 @@ sunos_write_dynamic_symbol (bfd *output_bfd, } /* This is called for each reloc against an external symbol. If this - is a reloc which are are going to copy as a dynamic reloc, then + is a reloc which are going to copy as a dynamic reloc, then copy it over, and tell the caller to not bother processing this reloc. */ diff --git a/bfd/vms-alpha.c b/bfd/vms-alpha.c index 91e8b6e0324..991a1bed3c6 100644 --- a/bfd/vms-alpha.c +++ b/bfd/vms-alpha.c @@ -6220,7 +6220,7 @@ evax_bfd_print_etir (FILE *file, const char *name, fprintf (file, _("OPR_ADD (add)\n")); break; case ETIR__C_OPR_SUB: - fprintf (file, _("OPR_SUB (substract)\n")); + fprintf (file, _("OPR_SUB (subtract)\n")); break; case ETIR__C_OPR_MUL: fprintf (file, _("OPR_MUL (multiply)\n")); diff --git a/bfd/xcofflink.c b/bfd/xcofflink.c index d80e98d4a15..c9421eed11c 100644 --- a/bfd/xcofflink.c +++ b/bfd/xcofflink.c @@ -5310,7 +5310,7 @@ xcoff_write_global_symbol (struct bfd_hash_entry *bh, void * inf) tocoff += h->descriptor->u.toc_offset; /* The first instruction in the glink code needs to be - cooked to to hold the correct offset in the toc. The + cooked to hold the correct offset in the toc. The rest are just output raw. */ bfd_put_32 (output_bfd, bfd_xcoff_glink_code(output_bfd, 0) | (tocoff & 0xffff), p); diff --git a/binutils/ChangeLog b/binutils/ChangeLog index ed124944972..d0980829581 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,11 @@ +2017-07-18 Nick Clifton + + PR 21775 + * coffgrok.c: Fix spelling typos. + * readelf.c: Likewise. + * stabs.c: Likewise. + * testsuite/binutils-all/objcopy.exp: Likewise. + 2017-07-18 Nick Clifton * po/sv.po: Updated Swedish translation. diff --git a/binutils/coffgrok.c b/binutils/coffgrok.c index 62cd1c49823..01ff0e9b2c1 100644 --- a/binutils/coffgrok.c +++ b/binutils/coffgrok.c @@ -846,13 +846,13 @@ doit (void) case C_UNTAG: /* Various definition. */ if (top_scope == NULL) - fatal (_("Aggregate defintion encountered without a scope")); + fatal (_("Aggregate definition encountered without a scope")); i = do_define (i, top_scope); break; case C_EXT: case C_LABEL: if (file_scope == NULL) - fatal (_("Label defintion encountered without a file scope")); + fatal (_("Label definition encountered without a file scope")); i = do_define (i, file_scope); break; case C_STAT: @@ -860,7 +860,7 @@ doit (void) case C_AUTO: case C_REG: if (top_scope == NULL) - fatal (_("Variable defintion encountered without a scope")); + fatal (_("Variable definition encountered without a scope")); i = do_define (i, top_scope); break; case C_EOS: diff --git a/binutils/readelf.c b/binutils/readelf.c index 362c204bcbc..50055a9811f 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -6706,7 +6706,7 @@ process_section_groups (FILE * file) error (_("section [%5u] in group section [%5u] > maximum section [%5u]\n"), entry, i, elf_header.e_shnum - 1); if (num_group_errors == 10) - warn (_("Futher error messages about overlarge group section indicies suppressed\n")); + warn (_("Further error messages about overlarge group section indicies suppressed\n")); } continue; } diff --git a/binutils/stabs.c b/binutils/stabs.c index 3861f83857c..39905f2b5d8 100644 --- a/binutils/stabs.c +++ b/binutils/stabs.c @@ -995,7 +995,7 @@ parse_stab_string (void *dhandle, struct stab_handle *info, int stabtype, break; case 'T': - /* Struct, union, or enum tag. For GNU C++, this can be be followed + /* Struct, union, or enum tag. For GNU C++, this can be followed by 't' which means we are typedef'ing it as well. */ if (*p != 't') { diff --git a/binutils/testsuite/binutils-all/objcopy.exp b/binutils/testsuite/binutils-all/objcopy.exp index 6d578375965..14e8f1d09f4 100644 --- a/binutils/testsuite/binutils-all/objcopy.exp +++ b/binutils/testsuite/binutils-all/objcopy.exp @@ -842,7 +842,7 @@ proc keep_debug_symbols_and_test_copy { prog1 flags1 test1 prog2 flags2 test2 } } # Tests that in a debug only copy of a file the sections -# headers whoes types have been changed to NOBITS still +# headers whose types have been changed to NOBITS still # retain their sh_link fields. proc keep_debug_symbols_and_check_links { prog flags test } { diff --git a/gas/ChangeLog b/gas/ChangeLog index 94fc3c03242..bd3333b4539 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,17 @@ +2017-07-18 Nick Clifton + + PR 21775 + * config/tc-arm.c: Fix spelling typos. + * config/tc-mips.c: Likewise. + * config/tc-msp430.c: Likewise. + * config/tc-sh64.c: Likewise. + * config/tc-tic4x.c: Likewise. + * ecoff.c: Likewise. + * testsuite/gas/arm/ldr-bad.l: Likewise. + * testsuite/gas/arm/ldr-t-bad.l: Likewise. + * testsuite/gas/tic54x/opcodes.s: Likewise. + * testsuite/gas/msp340/errata_warns.l: Likewise. + 2017-07-18 Nick Clifton * po/uk.po: Updated Ukranian translation. diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 08ce141d673..a036b1a7d88 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -8979,7 +8979,7 @@ check_ldr_r15_aligned (void) && (inst.operands[0].reg == REG_PC && inst.operands[1].reg == REG_PC && (inst.reloc.exp.X_add_number & 0x3)), - _("ldr to register 15 must be 4-byte alligned")); + _("ldr to register 15 must be 4-byte aligned")); } static void @@ -23542,7 +23542,7 @@ md_apply_fix (fixS * fixP, /* We are going to store value (shifted right by two) in the instruction, in a 24 bit, signed field. Bits 26 through 32 either all clear or all set and bit 0 must be clear. For B/BL bit 1 must - also be be clear. */ + also be clear. */ if (value & temp) as_bad_where (fixP->fx_file, fixP->fx_line, _("misaligned branch destination")); diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 4eeb5ee6b20..3804df29587 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -4897,7 +4897,7 @@ match_expression (struct mips_arg_info *arg, expressionS *value, } /* Try to get a constant expression from the next tokens in ARG. Consume - the tokens and return return true on success, storing the constant value + the tokens and return true on success, storing the constant value in *VALUE. */ static bfd_boolean @@ -15314,7 +15314,7 @@ fix_bad_misaligned_jump_p (fixS *fixP, int shift) We accept BFD_RELOC_16_PCREL_S2 relocations against MIPS16 and microMIPS symbols or BFD_RELOC_MICROMIPS_16_PCREL_S1 relocations against regular MIPS symbols and associated with BAL instructions as these instructions - may be be converted to JALX by the linker. */ + may be converted to JALX by the linker. */ static bfd_boolean fix_bad_cross_mode_branch_p (fixS *fixP) diff --git a/gas/config/tc-msp430.c b/gas/config/tc-msp430.c index 0430f2ec6e7..91e0a73ea65 100644 --- a/gas/config/tc-msp430.c +++ b/gas/config/tc-msp430.c @@ -2631,7 +2631,7 @@ msp430_operands (struct msp430_opcode_s * opcode, char * line) case NOP_CHECK_CPU12: if (silicon_errata_warn & SILICON_ERRATA_CPU12) - as_warn (_("CPU12: CMP/BIT with PC destinstion ignores next instruction")); + as_warn (_("CPU12: CMP/BIT with PC destination ignores next instruction")); if (silicon_errata_fix & SILICON_ERRATA_CPU12) doit = TRUE; @@ -2724,9 +2724,9 @@ msp430_operands (struct msp430_opcode_s * opcode, char * line) || is_opcode ("bicx") || is_opcode ("bisx") || is_opcode ("movx"))) { if (silicon_errata_fix & SILICON_ERRATA_CPU11) - as_bad (_("CPU11: PC is destinstion of SR altering instruction")); + as_bad (_("CPU11: PC is destination of SR altering instruction")); else if (silicon_errata_warn & SILICON_ERRATA_CPU11) - as_warn (_("CPU11: PC is destinstion of SR altering instruction")); + as_warn (_("CPU11: PC is destination of SR altering instruction")); } /* If the status register is the destination... */ @@ -2741,9 +2741,9 @@ msp430_operands (struct msp430_opcode_s * opcode, char * line) )) { if (silicon_errata_fix & SILICON_ERRATA_CPU13) - as_bad (_("CPU13: SR is destinstion of SR altering instruction")); + as_bad (_("CPU13: SR is destination of SR altering instruction")); else if (silicon_errata_warn & SILICON_ERRATA_CPU13) - as_warn (_("CPU13: SR is destinstion of SR altering instruction")); + as_warn (_("CPU13: SR is destination of SR altering instruction")); } if (is_opcode ("clr") && bin == 0x4302 /* CLR R2*/) @@ -2849,9 +2849,9 @@ msp430_operands (struct msp430_opcode_s * opcode, char * line) )) { if (silicon_errata_fix & SILICON_ERRATA_CPU13) - as_bad (_("CPU13: SR is destinstion of SR altering instruction")); + as_bad (_("CPU13: SR is destination of SR altering instruction")); else if (silicon_errata_warn & SILICON_ERRATA_CPU13) - as_warn (_("CPU13: SR is destinstion of SR altering instruction")); + as_warn (_("CPU13: SR is destination of SR altering instruction")); } if (extended_op) @@ -3410,9 +3410,9 @@ msp430_operands (struct msp430_opcode_s * opcode, char * line) || is_opcode ("bicx") || is_opcode ("bisx") || is_opcode ("movx"))) { if (silicon_errata_fix & SILICON_ERRATA_CPU11) - as_bad (_("CPU11: PC is destinstion of SR altering instruction")); + as_bad (_("CPU11: PC is destination of SR altering instruction")); else if (silicon_errata_warn & SILICON_ERRATA_CPU11) - as_warn (_("CPU11: PC is destinstion of SR altering instruction")); + as_warn (_("CPU11: PC is destination of SR altering instruction")); } /* If the status register is the destination... */ @@ -3427,9 +3427,9 @@ msp430_operands (struct msp430_opcode_s * opcode, char * line) )) { if (silicon_errata_fix & SILICON_ERRATA_CPU13) - as_bad (_("CPU13: SR is destinstion of SR altering instruction")); + as_bad (_("CPU13: SR is destination of SR altering instruction")); else if (silicon_errata_warn & SILICON_ERRATA_CPU13) - as_warn (_("CPU13: SR is destinstion of SR altering instruction")); + as_warn (_("CPU13: SR is destination of SR altering instruction")); } if ( (is_opcode ("bic") && bin == 0xc232) @@ -3605,9 +3605,9 @@ msp430_operands (struct msp430_opcode_s * opcode, char * line) && (is_opcode ("rra") || is_opcode ("rrc") || is_opcode ("sxt"))) { if (silicon_errata_fix & SILICON_ERRATA_CPU13) - as_bad (_("CPU13: SR is destinstion of SR altering instruction")); + as_bad (_("CPU13: SR is destination of SR altering instruction")); else if (silicon_errata_warn & SILICON_ERRATA_CPU13) - as_warn (_("CPU13: SR is destinstion of SR altering instruction")); + as_warn (_("CPU13: SR is destination of SR altering instruction")); } insn_length = (extended_op ? 2 : 0) + 2 + (op1.ol * 2); diff --git a/gas/config/tc-sh64.c b/gas/config/tc-sh64.c index 4ba5d809711..6f39c37a8cf 100644 --- a/gas/config/tc-sh64.c +++ b/gas/config/tc-sh64.c @@ -3030,7 +3030,7 @@ sh64_target_mach (void) return (sh64_abi == sh64_abi_64) ? bfd_mach_sh5 : 0; } -/* This is MD_PCREL_FROM_SECTION, we we define so it is called instead of +/* This is MD_PCREL_FROM_SECTION, we define so it is called instead of md_pcrel_from (in tc-sh.c). */ valueT diff --git a/gas/config/tc-tic4x.c b/gas/config/tc-tic4x.c index 50db237f714..0953815cac3 100644 --- a/gas/config/tc-tic4x.c +++ b/gas/config/tc-tic4x.c @@ -2353,7 +2353,7 @@ tic4x_insn_check (tic4x_insn_t *tinsn) if (tinsn->operands[1].mode == M_REGISTER && tinsn->operands[tinsn->num_operands-1].mode == M_REGISTER && tinsn->operands[1].expr.X_add_number == tinsn->operands[tinsn->num_operands-1].expr.X_add_number ) - as_warn (_("Equal parallell destination registers, one result will be discarded")); + as_warn (_("Equal parallel destination registers, one result will be discarded")); } } diff --git a/gas/ecoff.c b/gas/ecoff.c index 608d72b7e0d..325c3de3621 100644 --- a/gas/ecoff.c +++ b/gas/ecoff.c @@ -618,7 +618,7 @@ #26 48 0x00000030 struct no name { ifd = -1, index = 1048575 } */ -/* Redefinition of of storage classes as an enumeration for better +/* Redefinition of storage classes as an enumeration for better debugging. */ typedef enum sc { diff --git a/gas/testsuite/gas/arm/ldr-bad.l b/gas/testsuite/gas/arm/ldr-bad.l index 554b4a3366f..6fc20717826 100644 --- a/gas/testsuite/gas/arm/ldr-bad.l +++ b/gas/testsuite/gas/arm/ldr-bad.l @@ -1,7 +1,7 @@ [^:]*: Assembler messages: [^:]*:5: Warning: destination register same as write-back base -[^:]*:9: Error: ldr to register 15 must be 4-byte alligned -- `ldr r15,\[r15,#5\]' -[^:]*:12: Error: ldr to register 15 must be 4-byte alligned -- `ldr r15,.-0xab7' +[^:]*:9: Error: ldr to register 15 must be 4-byte aligned -- `ldr r15,\[r15,#5\]' +[^:]*:12: Error: ldr to register 15 must be 4-byte aligned -- `ldr r15,.-0xab7' [^:]*:15: Warning: destination register same as write-back base [^:]*:16: Error: cannot use register index with PC-relative addressing -- `ldr r2,\[r15,r2\]!' [^:]*:19: Error: cannot use register index with PC-relative addressing -- `ldr r1,\[r1,r15\]' diff --git a/gas/testsuite/gas/arm/ldr-t-bad.l b/gas/testsuite/gas/arm/ldr-t-bad.l index 95f420aad8f..d83648b5077 100644 --- a/gas/testsuite/gas/arm/ldr-t-bad.l +++ b/gas/testsuite/gas/arm/ldr-t-bad.l @@ -1,9 +1,9 @@ [^:]*: Assembler messages: [^:]*:8: Error: registers may not be the same -- `ldr r1,\[r1,#5\]!' -[^:]*:12: Error: ldr to register 15 must be 4-byte alligned -- `ldr r15,\[r15,#5\]' +[^:]*:12: Error: ldr to register 15 must be 4-byte aligned -- `ldr r15,\[r15,#5\]' [^:]*:16: Error: branch must be last instruction in IT block -- `ldrge r15,\[r15,#4\]' [^:]*:25: Error: branch must be last instruction in IT block -- `ldrge r15,.0x4' -[^:]*:30: Error: ldr to register 15 must be 4-byte alligned -- `ldr r15,.-0xab7' +[^:]*:30: Error: ldr to register 15 must be 4-byte aligned -- `ldr r15,.-0xab7' [^:]*:36: Error: branch must be last instruction in IT block -- `ldrge r15,\[r15,r1\]' [^:]*:41: Error: r13 not allowed here -- `ldr r1,\[r2,r13\]' [^:]*:42: Error: r15 not allowed here -- `ldr r2,\[r2,r15\]' diff --git a/gas/testsuite/gas/msp430/errata_warns.l b/gas/testsuite/gas/msp430/errata_warns.l index 52df6b95e31..699274b0023 100644 --- a/gas/testsuite/gas/msp430/errata_warns.l +++ b/gas/testsuite/gas/msp430/errata_warns.l @@ -6,39 +6,39 @@ [^:]*:13: Warning: CPU8: Stack pointer accessed with an odd offset [^:]*:14: Warning: CPU8: Stack pointer accessed with an odd offset [^:]*:15: Warning: CPU8: Stack pointer accessed with an odd offset -[^:]*:18: Warning: CPU11: PC is destinstion of SR altering instruction -[^:]*:19: Warning: CPU11: PC is destinstion of SR altering instruction -[^:]*:20: Warning: CPU11: PC is destinstion of SR altering instruction -[^:]*:21: Warning: CPU12: CMP/BIT with PC destinstion ignores next instruction -[^:]*:21: Warning: CPU11: PC is destinstion of SR altering instruction -[^:]*:22: Warning: CPU11: PC is destinstion of SR altering instruction -[^:]*:23: Warning: CPU11: PC is destinstion of SR altering instruction -[^:]*:24: Warning: CPU11: PC is destinstion of SR altering instruction -[^:]*:25: Warning: CPU11: PC is destinstion of SR altering instruction -[^:]*:26: Warning: CPU11: PC is destinstion of SR altering instruction -[^:]*:30: Warning: CPU11: PC is destinstion of SR altering instruction -[^:]*:31: Warning: CPU12: CMP/BIT with PC destinstion ignores next instruction -[^:]*:31: Warning: CPU11: PC is destinstion of SR altering instruction -[^:]*:34: Warning: CPU12: CMP/BIT with PC destinstion ignores next instruction -[^:]*:34: Warning: CPU13: SR is destinstion of SR altering instruction -[^:]*:35: Warning: CPU13: SR is destinstion of SR altering instruction -[^:]*:36: Warning: CPU13: SR is destinstion of SR altering instruction -[^:]*:37: Warning: CPU13: SR is destinstion of SR altering instruction -[^:]*:38: Warning: CPU13: SR is destinstion of SR altering instruction -[^:]*:39: Warning: CPU13: SR is destinstion of SR altering instruction -[^:]*:40: Warning: CPU13: SR is destinstion of SR altering instruction -[^:]*:41: Warning: CPU13: SR is destinstion of SR altering instruction -[^:]*:42: Warning: CPU13: SR is destinstion of SR altering instruction -[^:]*:43: Warning: CPU13: SR is destinstion of SR altering instruction -[^:]*:44: Warning: CPU13: SR is destinstion of SR altering instruction -[^:]*:45: Warning: CPU13: SR is destinstion of SR altering instruction -[^:]*:46: Warning: CPU13: SR is destinstion of SR altering instruction -[^:]*:47: Warning: CPU13: SR is destinstion of SR altering instruction -[^:]*:48: Warning: CPU13: SR is destinstion of SR altering instruction -[^:]*:49: Warning: CPU13: SR is destinstion of SR altering instruction -[^:]*:50: Warning: CPU13: SR is destinstion of SR altering instruction -[^:]*:51: Warning: CPU13: SR is destinstion of SR altering instruction -[^:]*:52: Warning: CPU13: SR is destinstion of SR altering instruction +[^:]*:18: Warning: CPU11: PC is destination of SR altering instruction +[^:]*:19: Warning: CPU11: PC is destination of SR altering instruction +[^:]*:20: Warning: CPU11: PC is destination of SR altering instruction +[^:]*:21: Warning: CPU12: CMP/BIT with PC destination ignores next instruction +[^:]*:21: Warning: CPU11: PC is destination of SR altering instruction +[^:]*:22: Warning: CPU11: PC is destination of SR altering instruction +[^:]*:23: Warning: CPU11: PC is destination of SR altering instruction +[^:]*:24: Warning: CPU11: PC is destination of SR altering instruction +[^:]*:25: Warning: CPU11: PC is destination of SR altering instruction +[^:]*:26: Warning: CPU11: PC is destination of SR altering instruction +[^:]*:30: Warning: CPU11: PC is destination of SR altering instruction +[^:]*:31: Warning: CPU12: CMP/BIT with PC destination ignores next instruction +[^:]*:31: Warning: CPU11: PC is destination of SR altering instruction +[^:]*:34: Warning: CPU12: CMP/BIT with PC destination ignores next instruction +[^:]*:34: Warning: CPU13: SR is destination of SR altering instruction +[^:]*:35: Warning: CPU13: SR is destination of SR altering instruction +[^:]*:36: Warning: CPU13: SR is destination of SR altering instruction +[^:]*:37: Warning: CPU13: SR is destination of SR altering instruction +[^:]*:38: Warning: CPU13: SR is destination of SR altering instruction +[^:]*:39: Warning: CPU13: SR is destination of SR altering instruction +[^:]*:40: Warning: CPU13: SR is destination of SR altering instruction +[^:]*:41: Warning: CPU13: SR is destination of SR altering instruction +[^:]*:42: Warning: CPU13: SR is destination of SR altering instruction +[^:]*:43: Warning: CPU13: SR is destination of SR altering instruction +[^:]*:44: Warning: CPU13: SR is destination of SR altering instruction +[^:]*:45: Warning: CPU13: SR is destination of SR altering instruction +[^:]*:46: Warning: CPU13: SR is destination of SR altering instruction +[^:]*:47: Warning: CPU13: SR is destination of SR altering instruction +[^:]*:48: Warning: CPU13: SR is destination of SR altering instruction +[^:]*:49: Warning: CPU13: SR is destination of SR altering instruction +[^:]*:50: Warning: CPU13: SR is destination of SR altering instruction +[^:]*:51: Warning: CPU13: SR is destination of SR altering instruction +[^:]*:52: Warning: CPU13: SR is destination of SR altering instruction [^:]*:56: Warning: CPU19: Instruction setting CPUOFF must be followed by a NOP [^:]*:57: Warning: CPU19: Instruction setting CPUOFF must be followed by a NOP -[^:]*:57: Warning: CPU13: SR is destinstion of SR altering instruction +[^:]*:57: Warning: CPU13: SR is destination of SR altering instruction diff --git a/gas/testsuite/gas/tic54x/opcodes.s b/gas/testsuite/gas/tic54x/opcodes.s index 3e1e84ba799..99b358ddea9 100644 --- a/gas/testsuite/gas/tic54x/opcodes.s +++ b/gas/testsuite/gas/tic54x/opcodes.s @@ -119,7 +119,7 @@ _opcodes: ld #7,arp ld *ar2+,asm ldm ar3,a - ld *ar2+,a || mac *ar3+,b ; single-line parallell + ld *ar2+,a || mac *ar3+,b ; single-line parallel ld *ar4+,b || macr *ar5+,a ; with optional DST_ specified ld *ar2+,a ; double-line parallel || mas *ar3+ diff --git a/gold/ChangeLog b/gold/ChangeLog index 8d64ea66d02..0dc39722ad2 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,12 @@ +2017-07-18 Nick Clifton + + PR 21775 + * aarch64.cc: Fix spelling typos. + * arm.cc: Likewise. + * layout.cc: Likewise. + * powerpc.cc: Likewise. + * x86_64.cc: Likewise. + 2017-07-12 Alan Modra * po/es.po: Update from translationproject.org/latest/gold/. diff --git a/gold/aarch64.cc b/gold/aarch64.cc index 696df19dca1..58c744967a5 100644 --- a/gold/aarch64.cc +++ b/gold/aarch64.cc @@ -270,7 +270,7 @@ public: uint32_t v = 0; uint32_t opc_v = 0; - /* Bail out quickly if INSN doesn't fall into the the load-store + /* Bail out quickly if INSN doesn't fall into the load-store encoding space. */ if (!aarch64_ldst (insn)) return false; @@ -1101,7 +1101,7 @@ public: private: // Section offset of "adrp". (We do not need a "adrp_shndx_" field, because we - // can can obtain it from its parent.) + // can obtain it from its parent.) const unsigned int adrp_sh_offset_; }; diff --git a/gold/arm.cc b/gold/arm.cc index ff472eaa747..f887fe558b8 100644 --- a/gold/arm.cc +++ b/gold/arm.cc @@ -129,7 +129,7 @@ const size_t ARM_TCB_SIZE = 8; // Target::do_select_as_default_target() hook so that we do not spend time // building the table if we are not linking ARM objects. // -// An alternative is to to process the information in arm-reloc.def in +// An alternative is to process the information in arm-reloc.def in // compilation time and generate a representation of it in PODs only. That // way we can avoid initialization when the linker starts. @@ -11660,7 +11660,7 @@ Target_arm::merge_object_attributes( if (in_attr[elfcpp::Tag_MPextension_use].int_value() != in_attr[i].int_value()) { - gold_error(_("%s has has both the current and legacy " + gold_error(_("%s has both the current and legacy " "Tag_MPextension_use attributes"), name); } @@ -12775,7 +12775,7 @@ Target_arm::scan_span_for_cortex_a8_erratum( Arm_address target = (pc_for_insn + offset) | (is_blx ? 0 : 1); - // Add a new stub if destination address in in the same page. + // Add a new stub if destination address is in the same page. if (((address + i) & ~0xfffU) == (target & ~0xfffU)) { Cortex_a8_stub* stub = @@ -12877,7 +12877,7 @@ Target_arm::fix_exidx_coverage( const Task* task) { // We need to look at all the input sections in output in ascending - // order of of output address. We do that by building a sorted list + // order of output address. We do that by building a sorted list // of output sections by addresses. Then we looks at the output sections // in order. The input sections in an output section are already sorted // by addresses within the output section. diff --git a/gold/layout.cc b/gold/layout.cc index bb13d7136e5..963ae523ca8 100644 --- a/gold/layout.cc +++ b/gold/layout.cc @@ -3464,7 +3464,7 @@ is_text_segment(const Target* target, const Output_segment* seg) } // Set the file offsets of all the segments, and all the sections they -// contain. They have all been created. LOAD_SEG must be be laid out +// contain. They have all been created. LOAD_SEG must be laid out // first. Return the offset of the data to follow. off_t diff --git a/gold/powerpc.cc b/gold/powerpc.cc index a046bbee33f..fcbf177956b 100644 --- a/gold/powerpc.cc +++ b/gold/powerpc.cc @@ -1064,7 +1064,7 @@ class Target_powerpc : public Sized_target this->set_processor_specific_flags(flags); } - // Offset to to save stack slot + // Offset to save stack slot int stk_toc () const { return this->abiversion() < 2 ? 40 : 24; } diff --git a/gold/x86_64.cc b/gold/x86_64.cc index 7f1742dd5f6..da5087faad8 100644 --- a/gold/x86_64.cc +++ b/gold/x86_64.cc @@ -4211,7 +4211,7 @@ Target_x86_64::Relocate::relocate( case elfcpp::R_X86_64_GOT64: case elfcpp::R_X86_64_GOTPLT64: - // R_X86_64_GOTPLT64 is obsolete and treated the the same as + // R_X86_64_GOTPLT64 is obsolete and treated the same as // GOT64. gold_assert(have_got_offset); Reloc_funcs::rela64(view, got_offset, addend); diff --git a/include/ChangeLog b/include/ChangeLog index 3203836ce81..cecaa88cab2 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,15 @@ +2017-07-18 Nick Clifton + + PR 21775 + * aout/adobe.h: Fix spelling typos. + * aout/aout64.h: Likewise. + * aout/hp300hpux.h: Likewise. + * elf/hppa.h: Likewise. + * gdb/remote-sim.h: Likewise. + * libiberty.h: Likewise. + * mach-o/arm.h: Likewise. + * opcode/v850.h: Likewise. + 2017-07-14 Ravi Bangoria * dis-asm.h (struct disassemble_info): Change type of buffer_length diff --git a/include/aout/adobe.h b/include/aout/adobe.h index 9c26794e1a2..5e6cc8b19c0 100644 --- a/include/aout/adobe.h +++ b/include/aout/adobe.h @@ -24,23 +24,23 @@ /* Struct external_exec is the same. */ -/* This is the layout on disk of the 32-bit or 64-bit exec header. */ +/* This is the layout on disk of the 32-bit or 64-bit exec header. */ struct external_exec { - bfd_byte e_info[4]; /* magic number and stuff */ - bfd_byte e_text[BYTES_IN_WORD]; /* length of text section in bytes */ - bfd_byte e_data[BYTES_IN_WORD]; /* length of data section in bytes */ - bfd_byte e_bss[BYTES_IN_WORD]; /* length of bss area in bytes */ - bfd_byte e_syms[BYTES_IN_WORD]; /* length of symbol table in bytes */ - bfd_byte e_entry[BYTES_IN_WORD]; /* start address */ - bfd_byte e_trsize[BYTES_IN_WORD]; /* length of text relocation info */ - bfd_byte e_drsize[BYTES_IN_WORD]; /* length of data relocation info */ + bfd_byte e_info[4]; /* Magic number and stuff. */ + bfd_byte e_text[BYTES_IN_WORD]; /* Length of text section in bytes. */ + bfd_byte e_data[BYTES_IN_WORD]; /* Length of data section in bytes. */ + bfd_byte e_bss[BYTES_IN_WORD]; /* Length of bss area in bytes. */ + bfd_byte e_syms[BYTES_IN_WORD]; /* Length of symbol table in bytes. */ + bfd_byte e_entry[BYTES_IN_WORD]; /* Start address. */ + bfd_byte e_trsize[BYTES_IN_WORD]; /* Length of text relocation info. */ + bfd_byte e_drsize[BYTES_IN_WORD]; /* Length of data relocation info. */ }; #define EXEC_BYTES_SIZE (4 + BYTES_IN_WORD * 7) -/* Magic numbers for a.out files */ +/* Magic numbers for a.out files. */ #undef ZMAGIC #define ZMAGIC 0xAD0BE /* Cute, eh? */ @@ -63,18 +63,20 @@ struct external_exec The actual text of the segments starts at N_TXTOFF in the file, regardless of how many or how few segment headers there are. */ -struct external_segdesc { - unsigned char e_type[1]; - unsigned char e_size[3]; - unsigned char e_virtbase[4]; - unsigned char e_filebase[4]; +struct external_segdesc +{ + unsigned char e_type[1]; + unsigned char e_size[3]; + unsigned char e_virtbase[4]; + unsigned char e_filebase[4]; }; -struct internal_segdesc { - unsigned int a_type:8; /* Segment type N_TEXT, N_DATA, 0 */ - unsigned int a_size:24; /* Segment size */ - bfd_vma a_virtbase; /* Virtual address */ - unsigned int a_filebase; /* Base address in object file */ +struct internal_segdesc +{ + unsigned int a_type:8; /* Segment type N_TEXT, N_DATA, 0. */ + unsigned int a_size:24; /* Segment size. */ + bfd_vma a_virtbase; /* Virtual address. */ + unsigned int a_filebase; /* Base address in object file. */ }; #define N_TXTADDR(x) is_this_really_unused? @@ -97,41 +99,43 @@ struct internal_segdesc { #define N_SYMOFF(x) ( N_DRELOFF(x) + (x)->a_drsize ) #define N_STROFF(x) ( N_SYMOFF(x) + (x)->a_syms ) -/* Symbols */ -struct external_nlist { - bfd_byte e_strx[BYTES_IN_WORD]; /* index into string table of name */ - bfd_byte e_type[1]; /* type of symbol */ - bfd_byte e_other[1]; /* misc info (usually empty) */ - bfd_byte e_desc[2]; /* description field */ - bfd_byte e_value[BYTES_IN_WORD]; /* value of symbol */ +/* Symbols. */ +struct external_nlist +{ + bfd_byte e_strx[BYTES_IN_WORD]; /* Index into string table of name. */ + bfd_byte e_type[1]; /* Type of symbol. */ + bfd_byte e_other[1]; /* Misc info (usually empty). */ + bfd_byte e_desc[2]; /* Description field. */ + bfd_byte e_value[BYTES_IN_WORD]; /* Value of symbol. */ }; #define EXTERNAL_NLIST_SIZE (BYTES_IN_WORD+4+BYTES_IN_WORD) -struct internal_nlist { - unsigned long n_strx; /* index into string table of name */ - unsigned char n_type; /* type of symbol */ - unsigned char n_other; /* misc info (usually empty) */ - unsigned short n_desc; /* description field */ - bfd_vma n_value; /* value of symbol */ +struct internal_nlist +{ + unsigned long n_strx; /* Index into string table of name. */ + unsigned char n_type; /* Type of symbol. */ + unsigned char n_other; /* Misc info (usually empty). */ + unsigned short n_desc; /* Description field. */ + bfd_vma n_value; /* Value of symbol. */ }; /* The n_type field is the symbol type, containing: */ -#define N_UNDF 0 /* Undefined symbol */ -#define N_ABS 2 /* Absolute symbol -- defined at particular addr */ -#define N_TEXT 4 /* Text sym -- defined at offset in text seg */ -#define N_DATA 6 /* Data sym -- defined at offset in data seg */ -#define N_BSS 8 /* BSS sym -- defined at offset in zero'd seg */ -#define N_COMM 0x12 /* Common symbol (visible after shared lib dynlink) */ -#define N_FN 0x1f /* File name of .o file */ -#define N_FN_SEQ 0x0C /* N_FN from Sequent compilers (sigh) */ +#define N_UNDF 0 /* Undefined symbol. */ +#define N_ABS 2 /* Absolute symbol -- defined at particular addr. */ +#define N_TEXT 4 /* Text sym -- defined at offset in text seg. */ +#define N_DATA 6 /* Data sym -- defined at offset in data seg. */ +#define N_BSS 8 /* BSS sym -- defined at offset in zero'd seg. */ +#define N_COMM 0x12 /* Common symbol (visible after shared lib dynlink). */ +#define N_FN 0x1f /* File name of .o file. */ +#define N_FN_SEQ 0x0C /* N_FN from Sequent compilers (sigh). */ /* Note: N_EXT can only be usefully OR-ed with N_UNDF, N_ABS, N_TEXT, N_DATA, or N_BSS. When the low-order bit of other types is set, (e.g. N_WARNING versus N_FN), they are two different types. */ -#define N_EXT 1 /* External symbol (as opposed to local-to-this-file) */ +#define N_EXT 1 /* External symbol (as opposed to local-to-this-file). */ #define N_TYPE 0x1e -#define N_STAB 0xe0 /* If any of these bits are on, it's a debug symbol */ +#define N_STAB 0xe0 /* If any of these bits are on, it's a debug symbol. */ #define N_INDR 0x0a @@ -147,10 +151,10 @@ struct internal_nlist { in that it can satisfy undefined external references. */ /* These appear as input to LD, in a .o file. */ -#define N_SETA 0x14 /* Absolute set element symbol */ -#define N_SETT 0x16 /* Text set element symbol */ -#define N_SETD 0x18 /* Data set element symbol */ -#define N_SETB 0x1A /* Bss set element symbol */ +#define N_SETA 0x14 /* Absolute set element symbol. */ +#define N_SETT 0x16 /* Text set element symbol. */ +#define N_SETD 0x18 /* Data set element symbol. */ +#define N_SETB 0x1A /* Bss set element symbol. */ /* This is output from LD. */ #define N_SETV 0x1C /* Pointer to set vector in data area. */ @@ -170,25 +174,25 @@ struct internal_nlist { instructions. Eg, on the 68k, each move instruction can reference the target with a displacement of 16 or 32 bits. On the sparc, move instructions use an offset of 14 bits, so the offset is stored in - the reloc field, and the data in the section is ignored. -*/ + the reloc field, and the data in the section is ignored. */ /* This structure describes a single relocation to be performed. The text-relocation section of the file is a vector of these structures, all of which apply to the text section. Likewise, the data-relocation section applies to the data section. */ -struct reloc_std_external { - bfd_byte r_address[BYTES_IN_WORD]; /* offset of of data to relocate */ - bfd_byte r_index[3]; /* symbol table index of symbol */ - bfd_byte r_type[1]; /* relocation type */ +struct reloc_std_external +{ + bfd_byte r_address[BYTES_IN_WORD]; /* Offset of data to relocate. */ + bfd_byte r_index[3]; /* Symbol table index of symbol. */ + bfd_byte r_type[1]; /* Relocation type. */ }; #define RELOC_STD_BITS_PCREL_BIG 0x80 #define RELOC_STD_BITS_PCREL_LITTLE 0x01 #define RELOC_STD_BITS_LENGTH_BIG 0x60 -#define RELOC_STD_BITS_LENGTH_SH_BIG 5 /* To shift to units place */ +#define RELOC_STD_BITS_LENGTH_SH_BIG 5 /* To shift to units place. */ #define RELOC_STD_BITS_LENGTH_LITTLE 0x06 #define RELOC_STD_BITS_LENGTH_SH_LITTLE 1 @@ -204,7 +208,7 @@ struct reloc_std_external { #define RELOC_STD_BITS_RELATIVE_BIG 0x02 #define RELOC_STD_BITS_RELATIVE_LITTLE 0x02 -#define RELOC_STD_SIZE (BYTES_IN_WORD + 3 + 1) /* Bytes per relocation entry */ +#define RELOC_STD_SIZE (BYTES_IN_WORD + 3 + 1) /* Bytes per relocation entry. */ struct reloc_std_internal { @@ -227,21 +231,22 @@ struct reloc_std_internal unsigned int r_extern:1; /* The next three bits are for SunOS shared libraries, and seem to be undocumented. */ - unsigned int r_baserel:1; /* Linkage table relative */ - unsigned int r_jmptable:1; /* pc-relative to jump table */ - unsigned int r_relative:1; /* "relative relocation" */ + unsigned int r_baserel:1; /* Linkage table relative. */ + unsigned int r_jmptable:1; /* pc-relative to jump table. */ + unsigned int r_relative:1; /* "relative relocation". */ /* unused */ - unsigned int r_pad:1; /* Padding -- set to zero */ + unsigned int r_pad:1; /* Padding -- set to zero. */ }; /* EXTENDED RELOCS */ -struct reloc_ext_external { - bfd_byte r_address[BYTES_IN_WORD]; /* offset of of data to relocate */ - bfd_byte r_index[3]; /* symbol table index of symbol */ - bfd_byte r_type[1]; /* relocation type */ - bfd_byte r_addend[BYTES_IN_WORD]; /* datum addend */ +struct reloc_ext_external +{ + bfd_byte r_address[BYTES_IN_WORD]; /* Offset of data to relocate. */ + bfd_byte r_index[3]; /* Symbol table index of symbol. */ + bfd_byte r_type[1]; /* Relocation type. */ + bfd_byte r_addend[BYTES_IN_WORD]; /* Datum addend. */ }; #define RELOC_EXT_BITS_EXTERN_BIG 0x80 @@ -257,15 +262,15 @@ struct reloc_ext_external { enum reloc_type { - /* simple relocations */ + /* Simple relocations. */ RELOC_8, /* data[0:7] = addend + sv */ RELOC_16, /* data[0:15] = addend + sv */ RELOC_32, /* data[0:31] = addend + sv */ - /* pc-rel displacement */ + /* PC-rel displacement. */ RELOC_DISP8, /* data[0:7] = addend - pc + sv */ RELOC_DISP16, /* data[0:15] = addend - pc + sv */ RELOC_DISP32, /* data[0:31] = addend - pc + sv */ - /* Special */ + /* Special. */ RELOC_WDISP30, /* data[0:29] = (addend + sv - pc)>>2 */ RELOC_WDISP22, /* data[0:21] = (addend + sv - pc)>>2 */ RELOC_HI22, /* data[0:21] = (addend + sv)>>10 */ @@ -274,16 +279,16 @@ enum reloc_type RELOC_LO10, /* data[0:9] = (addend + sv) */ RELOC_SFA_BASE, RELOC_SFA_OFF13, - /* P.I.C. (base-relative) */ - RELOC_BASE10, /* Not sure - maybe we can do this the */ - RELOC_BASE13, /* right way now */ + /* P.I.C. (base-relative). */ + RELOC_BASE10, /* Not sure - maybe we can do this the */ + RELOC_BASE13, /* right way now. */ RELOC_BASE22, - /* for some sort of pc-rel P.I.C. (?) */ + /* For some sort of pc-rel P.I.C. (?) */ RELOC_PC10, RELOC_PC22, - /* P.I.C. jump table */ + /* P.I.C. jump table. */ RELOC_JMP_TBL, - /* reputedly for shared libraries somehow */ + /* Reputedly for shared libraries somehow. */ RELOC_SEGOFF16, RELOC_GLOB_DAT, RELOC_JMP_SLOT, @@ -301,14 +306,14 @@ enum reloc_type RELOC_CONSTH, NO_RELOC - }; - +}; -struct reloc_internal { - bfd_vma r_address; /* offset of of data to relocate */ - long r_index; /* symbol table index of symbol */ - enum reloc_type r_type; /* relocation type */ - bfd_vma r_addend; /* datum addend */ +struct reloc_internal +{ + bfd_vma r_address; /* Offset of data to relocate. */ + long r_index; /* Symbol table index of symbol. */ + enum reloc_type r_type; /* Relocation type. */ + bfd_vma r_addend; /* Datum addend. */ }; -#endif /* __A_OUT_ADOBE_H__ */ +#endif /* __A_OUT_ADOBE_H__ */ diff --git a/include/aout/aout64.h b/include/aout/aout64.h index 6858ada2789..8c4ce3df692 100644 --- a/include/aout/aout64.h +++ b/include/aout/aout64.h @@ -346,7 +346,7 @@ struct internal_nlist struct reloc_std_external { - bfd_byte r_address[BYTES_IN_WORD]; /* Offset of of data to relocate. */ + bfd_byte r_address[BYTES_IN_WORD]; /* Offset of data to relocate. */ bfd_byte r_index[3]; /* Symbol table index of symbol. */ bfd_byte r_type[1]; /* Relocation type. */ }; @@ -406,7 +406,7 @@ struct reloc_std_internal struct reloc_ext_external { - bfd_byte r_address[BYTES_IN_WORD]; /* Offset of of data to relocate. */ + bfd_byte r_address[BYTES_IN_WORD]; /* Offset of data to relocate. */ bfd_byte r_index[3]; /* Symbol table index of symbol. */ bfd_byte r_type[1]; /* Relocation type. */ bfd_byte r_addend[BYTES_IN_WORD]; /* Datum addend. */ @@ -501,7 +501,7 @@ enum reloc_type struct reloc_internal { - bfd_vma r_address; /* Offset of of data to relocate. */ + bfd_vma r_address; /* Offset of data to relocate. */ long r_index; /* Symbol table index of symbol. */ enum reloc_type r_type; /* Relocation type. */ bfd_vma r_addend; /* Datum addend. */ diff --git a/include/aout/hp300hpux.h b/include/aout/hp300hpux.h index b4fb000c9f1..6187a0ee0e8 100644 --- a/include/aout/hp300hpux.h +++ b/include/aout/hp300hpux.h @@ -38,47 +38,47 @@ struct hp300hpux_exec_bytes #define EXEC_BYTES_SIZE 64 struct hp300hpux_nlist_bytes - { - unsigned char e_value[4]; - unsigned char e_type[1]; - unsigned char e_length[1]; /* length of ascii symbol name */ - unsigned char e_almod[2]; /* alignment mod */ - unsigned char e_shlib[2]; /* info about dynamic linking */ - }; +{ + unsigned char e_value[4]; + unsigned char e_type[1]; + unsigned char e_length[1]; /* Length of ascii symbol name. */ + unsigned char e_almod[2]; /* Alignment mod. */ + unsigned char e_shlib[2]; /* Info about dynamic linking. */ +}; #define EXTERNAL_NLIST_SIZE 10 struct hp300hpux_reloc - { - unsigned char r_address[4];/* offset of of data to relocate */ - unsigned char r_index[2]; /* symbol table index of symbol */ - unsigned char r_type[1]; /* relocation type */ - unsigned char r_length[1]; /* length of item to reloc */ - }; +{ + unsigned char r_address[4];/* offset of data to relocate */ + unsigned char r_index[2]; /* symbol table index of symbol */ + unsigned char r_type[1]; /* relocation type */ + unsigned char r_length[1]; /* length of item to reloc */ +}; struct hp300hpux_header_extension { - unsigned char e_syms[4]; - unsigned char unique_headers[12*4]; - unsigned char e_header[2]; /* type of header */ - unsigned char e_version[2]; /* version */ - unsigned char e_size[4]; /* bytes following*/ - unsigned char e_extension[4];/* file offset of next extension */ + unsigned char e_syms[4]; + unsigned char unique_headers[12*4]; + unsigned char e_header[2]; /* Type of header. */ + unsigned char e_version[2]; /* Version. */ + unsigned char e_size[4]; /* Bytes following. */ + unsigned char e_extension[4];/* File offset of next extension. */ }; #define EXTERNAL_EXTENSION_HEADER_SIZE (16*4) -/* hpux separates object files (0x106) and impure executables (0x107) */ -/* but the bfd code does not distinguish between them. Since we want to*/ -/* read hpux .o files, we add an special define and use it below in */ -/* offset and address calculations. */ +/* HPUX separates object files (0x106) and impure executables (0x107) + but the bfd code does not distinguish between them. Since we want to + read hpux .o files, we add an special define and use it below in + offset and address calculations. */ #define HPUX_DOT_O_MAGIC 0x106 -#define OMAGIC 0x107 /* object file or impure executable. */ +#define OMAGIC 0x107 /* Object file or impure executable. */ #define NMAGIC 0x108 /* Code indicating pure executable. */ -#define ZMAGIC 0x10B /* demand-paged executable. */ +#define ZMAGIC 0x10B /* Demand-paged executable. */ #define N_HEADER_IN_TEXT(x) 0 -#if 0 /* libaout.h only uses the lower 8 bits */ +#if 0 /* libaout.h only uses the lower 8 bits. */ #define HP98x6_ID 0x20A #define HP9000S200_ID 0x20C #endif @@ -121,7 +121,7 @@ struct hp300hpux_header_extension #define N_EXTHOFF(x) ( N_DRELOFF(x) /* + (x)->a_drsize */) #define N_STROFF(x) ( 0 /* no string table */ ) -/* use these when the file has gnu symbol tables */ +/* Use these when the file has gnu symbol tables. */ #define N_GNU_TRELOFF(x) (N_DATOFF(x) + (x)->a_data) #define N_GNU_DRELOFF(x) (N_GNU_TRELOFF(x) + (x)->a_trsize) #define N_GNU_SYMOFF(x) (N_GNU_DRELOFF(x) + (x)->a_drsize) diff --git a/include/elf/hppa.h b/include/elf/hppa.h index 77822ccbf53..99beb420840 100644 --- a/include/elf/hppa.h +++ b/include/elf/hppa.h @@ -138,7 +138,7 @@ RELOC_NUMBER (R_PARISC_DIR14F, 7) When supporting argument relocations, function calls must be accompanied by parameter relocation information. This information is carried in the ten high-order bits of the addend field. The remaining - 22 bits of of the addend field are sign-extended to form the Addend. + 22 bits of the addend field are sign-extended to form the Addend. Note the code to build argument relocations depends on the addend being zero. A consequence of this limitation is GAS diff --git a/include/gdb/remote-sim.h b/include/gdb/remote-sim.h index 9b8d3dc9c88..9af0310a259 100644 --- a/include/gdb/remote-sim.h +++ b/include/gdb/remote-sim.h @@ -261,7 +261,7 @@ int sim_stop (SIM_DESC sd); that information is not directly accessable via this interface. SIM_SIGNALLED: The program has been terminated by a signal. The - simulator has encountered target code that causes the the program + simulator has encountered target code that causes the program to exit with signal SIGRC. SIM_RUNNING, SIM_POLLING: The return of one of these values diff --git a/include/libiberty.h b/include/libiberty.h index 7a796124bf5..0b6ef453e3b 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -3,7 +3,7 @@ Copyright (C) 1997-2017 Free Software Foundation, Inc. Note - certain prototypes declared in this header file are for - functions whoes implementation copyright does not belong to the + functions whose implementation copyright does not belong to the FSF. Those prototypes are present in this file for reference purposes only and their presence in this file should not construed as an indication of ownership by the FSF of the implementation of diff --git a/include/mach-o/arm.h b/include/mach-o/arm.h index a2f2962b09a..fd118a8c10b 100644 --- a/include/mach-o/arm.h +++ b/include/mach-o/arm.h @@ -24,7 +24,7 @@ /* ARM relocations. */ #define BFD_MACH_O_ARM_RELOC_VANILLA 0 /* Generic relocation. */ #define BFD_MACH_O_ARM_RELOC_PAIR 1 /* Second entry in a pair. */ -#define BFD_MACH_O_ARM_RELOC_SECTDIFF 2 /* Substract with a PAIR. */ +#define BFD_MACH_O_ARM_RELOC_SECTDIFF 2 /* Subtract with a PAIR. */ #define BFD_MACH_O_ARM_RELOC_LOCAL_SECTDIFF 3 /* Like above, but local ref. */ #define BFD_MACH_O_ARM_RELOC_PB_LA_PTR 4 /* Prebound lazy pointer. */ #define BFD_MACH_O_ARM_RELOC_BR24 5 /* 24bit branch. */ diff --git a/include/opcode/v850.h b/include/opcode/v850.h index b20ef10e294..31f96d8a093 100644 --- a/include/opcode/v850.h +++ b/include/opcode/v850.h @@ -230,10 +230,10 @@ extern const struct v850_operand v850_operands[]; /* The operand has '%' prefix. */ #define V850_OPERAND_PERCENT 0x200000 -/* This operand is a cache oparation. */ +/* This operand is a cache operation. */ #define V850_OPERAND_CACHEOP 0x400000 -/* This operand is a prefetch oparation. */ +/* This operand is a prefetch operation. */ #define V850_OPERAND_PREFOP 0x800000 /* A PC-relative displacement where a positive value indicates a backwards displacement. */ diff --git a/ld/ChangeLog b/ld/ChangeLog index ba03ae40cc3..23babe3f66e 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2017-07-18 Nick Clifton + + PR 21775 + * ld.texinfo: Fix spelling typos. + * testsuite/ld-elfcomm/elfcomm.exp: Likewise. + 2017-07-17 H.J. Lu * testsuite/ld-i386/i386.exp: Run pie1 and pie1-nacl. diff --git a/ld/ld.texinfo b/ld/ld.texinfo index bb5f71927c2..987816f33cf 100644 --- a/ld/ld.texinfo +++ b/ld/ld.texinfo @@ -7888,7 +7888,7 @@ application will behave unexpectedly. @code{PRIVATE}: Put the symbol in the DLL's export table, but do not put it into the static import library used to resolve imports at link time. The symbol can still be imported using the @code{LoadLibrary/GetProcAddress} -API at runtime or by by using the GNU ld extension of linking directly to +API at runtime or by using the GNU ld extension of linking directly to the DLL without an import library. See ld/deffilep.y in the binutils sources for the full specification of diff --git a/ld/testsuite/ld-elfcomm/elfcomm.exp b/ld/testsuite/ld-elfcomm/elfcomm.exp index da33768525e..83fa8ef8f26 100644 --- a/ld/testsuite/ld-elfcomm/elfcomm.exp +++ b/ld/testsuite/ld-elfcomm/elfcomm.exp @@ -101,7 +101,7 @@ proc test_sort_common {} { test_sort_common -set test1 "size/aligment change of common symbols" +set test1 "size/alignment change of common symbols" set test1w1 "$test1 (warning 1)" set test1w2 "$test1 (warning 2)" set test1c1 "$test1 (change 1)" diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index caeeee7fb9f..c01397492ac 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,9 @@ +2017-07-18 Nick Clifton + + PR 21775 + * aarch64-opc.c: Fix spelling typos. + * i386-dis.c: Likewise. + 2017-07-14 Ravi Bangoria * dis-buf.c (buffer_read_memory): Change type of end_addr_offset, diff --git a/opcodes/aarch64-opc.c b/opcodes/aarch64-opc.c index a47a754fff2..27c1d090807 100644 --- a/opcodes/aarch64-opc.c +++ b/opcodes/aarch64-opc.c @@ -3050,7 +3050,7 @@ aarch64_print_operand (char *buf, size_t size, bfd_vma pc, case AARCH64_OPND_PAIRREG: case AARCH64_OPND_SVE_Rm: /* The optional-ness of in e.g. IC {, } is determined by - the , therefore we we use opnd->present to override the + the , therefore we use opnd->present to override the generic optional-ness information. */ if (opnd->type == AARCH64_OPND_Rt_SYS) { diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c index e95311e1017..a3ce08d3084 100644 --- a/opcodes/i386-dis.c +++ b/opcodes/i386-dis.c @@ -6957,7 +6957,7 @@ static const struct dis386 x86_64_table[][2] = { /* X86_64_82 */ { - /* Opcode 0x82 is an alias of of opcode 0x80 in 32-bit mode. */ + /* Opcode 0x82 is an alias of opcode 0x80 in 32-bit mode. */ { REG_TABLE (REG_80) }, }, -- 2.30.2