diff options
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; |