diff options
author | Alan Modra <amodra@gmail.com> | 2018-07-24 16:35:52 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2018-07-24 19:58:12 +0930 |
commit | 67ce483baa43121a17195efe4b14a183e9fd8232 (patch) | |
tree | a623e87fbad16d4c23efbf073dba1271303e2fec /bfd | |
parent | 4174bfff8a88f21659446cf631dbbbad615b4a9e (diff) | |
download | gdb-67ce483baa43121a17195efe4b14a183e9fd8232.zip gdb-67ce483baa43121a17195efe4b14a183e9fd8232.tar.gz gdb-67ce483baa43121a17195efe4b14a183e9fd8232.tar.bz2 |
PR23430, Indices misspelled
PR 23430
include/
* elf/common.h (SHT_SYMTAB_SHNDX): Fix comment typo.
bfd/
* dwarf2.c (dwarf_debug_section_enum): Fix comment typo.
* elf.c (bfd_section_from_shdr, elf_sort_sections): Likewise.
binutils/
* elfcomm.h (struct archive_info): Rename uses_64bit_indicies
to uses_64bit_indices.
* elfcomm.c (setup_archive): Update uses of above.
* readelf.c (process_archive): Likewise.
(get_section_type_name): Rename indicies to indices.
(get_32bit_elf_symbols, get_64bit_elf_symbols): Likewise.
(process_section_groups): Likewise.
cpu/
* or1kcommon.cpu (spr-reg-indices): Fix description typo.
opcodes/
* or1k-desc.h: Regenerate.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/dwarf2.c | 2 | ||||
-rw-r--r-- | bfd/elf.c | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 370289d..bdbb3ff 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2018-07-24 Alan Modra <amodra@gmail.com> + + PR 23430 + * dwarf2.c (dwarf_debug_section_enum): Fix comment typo. + * elf.c (bfd_section_from_shdr, elf_sort_sections): Likewise. + 2018-07-23 Max Filippov <jcmvbkbc@gmail.com> * elf32-xtensa.c (elf_xtensa_finish_dynamic_sections): Move diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c index 0f8257f..8fadb5c 100644 --- a/bfd/dwarf2.c +++ b/bfd/dwarf2.c @@ -345,7 +345,7 @@ const struct dwarf_debug_section dwarf_debug_sections[] = { NULL, NULL }, }; -/* NB/ Numbers in this enum must match up with indicies +/* NB/ Numbers in this enum must match up with indices into the dwarf_debug_sections[] array above. */ enum dwarf_debug_section_enum { @@ -2011,7 +2011,7 @@ bfd_section_from_shdr (bfd *abfd, unsigned int shindex) if (++ nesting > 3) { /* PR17512: A corrupt ELF binary might contain a recursive group of - sections, with each the string indicies pointing to the next in the + sections, with each the string indices pointing to the next in the loop. Detect this here, by refusing to load a section that we are already in the process of loading. We only trigger this test if we have nested at least three sections deep as normal ELF binaries @@ -5140,7 +5140,7 @@ elf_sort_sections (const void *arg1, const void *arg2) { if (TOEND (sec2)) { - /* If the indicies are the same, do not return 0 + /* If the indices are the same, do not return 0 here, but continue to try the next comparison. */ if (sec1->target_index - sec2->target_index != 0) return sec1->target_index - sec2->target_index; |