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.
This commit is contained in:
parent
4174bfff8a
commit
67ce483baa
@ -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>
|
2018-07-23 Max Filippov <jcmvbkbc@gmail.com>
|
||||||
|
|
||||||
* elf32-xtensa.c (elf_xtensa_finish_dynamic_sections): Move
|
* elf32-xtensa.c (elf_xtensa_finish_dynamic_sections): Move
|
||||||
|
@ -345,7 +345,7 @@ const struct dwarf_debug_section dwarf_debug_sections[] =
|
|||||||
{ NULL, NULL },
|
{ 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. */
|
into the dwarf_debug_sections[] array above. */
|
||||||
enum dwarf_debug_section_enum
|
enum dwarf_debug_section_enum
|
||||||
{
|
{
|
||||||
|
@ -2011,7 +2011,7 @@ bfd_section_from_shdr (bfd *abfd, unsigned int shindex)
|
|||||||
if (++ nesting > 3)
|
if (++ nesting > 3)
|
||||||
{
|
{
|
||||||
/* PR17512: A corrupt ELF binary might contain a recursive group of
|
/* 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
|
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
|
already in the process of loading. We only trigger this test if
|
||||||
we have nested at least three sections deep as normal ELF binaries
|
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 (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. */
|
here, but continue to try the next comparison. */
|
||||||
if (sec1->target_index - sec2->target_index != 0)
|
if (sec1->target_index - sec2->target_index != 0)
|
||||||
return sec1->target_index - sec2->target_index;
|
return sec1->target_index - sec2->target_index;
|
||||||
|
@ -1,3 +1,14 @@
|
|||||||
|
2018-07-24 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
PR 23430
|
||||||
|
* 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.
|
||||||
|
|
||||||
2018-07-20 Maciej W. Rozycki <macro@mips.com>
|
2018-07-20 Maciej W. Rozycki <macro@mips.com>
|
||||||
|
|
||||||
* MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
|
* MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
|
||||||
|
@ -622,7 +622,7 @@ setup_archive (struct archive_info *arch, const char *file_name,
|
|||||||
arch->longnames_size = 0;
|
arch->longnames_size = 0;
|
||||||
arch->nested_member_origin = 0;
|
arch->nested_member_origin = 0;
|
||||||
arch->is_thin_archive = is_thin_archive;
|
arch->is_thin_archive = is_thin_archive;
|
||||||
arch->uses_64bit_indicies = FALSE;
|
arch->uses_64bit_indices = FALSE;
|
||||||
arch->next_arhdr_offset = SARMAG;
|
arch->next_arhdr_offset = SARMAG;
|
||||||
|
|
||||||
/* Read the first archive member header. */
|
/* Read the first archive member header. */
|
||||||
@ -649,7 +649,7 @@ setup_archive (struct archive_info *arch, const char *file_name,
|
|||||||
}
|
}
|
||||||
else if (const_strneq (arch->arhdr.ar_name, "/SYM64/ "))
|
else if (const_strneq (arch->arhdr.ar_name, "/SYM64/ "))
|
||||||
{
|
{
|
||||||
arch->uses_64bit_indicies = TRUE;
|
arch->uses_64bit_indices = TRUE;
|
||||||
if (! process_archive_index_and_symbols (arch, 8, read_symbols))
|
if (! process_archive_index_and_symbols (arch, 8, read_symbols))
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -65,7 +65,7 @@ struct archive_info
|
|||||||
unsigned long nested_member_origin; /* Origin in the nested archive of the current member. */
|
unsigned long nested_member_origin; /* Origin in the nested archive of the current member. */
|
||||||
unsigned long next_arhdr_offset; /* Offset of the next archive header. */
|
unsigned long next_arhdr_offset; /* Offset of the next archive header. */
|
||||||
bfd_boolean is_thin_archive; /* TRUE if this is a thin archive. */
|
bfd_boolean is_thin_archive; /* TRUE if this is a thin archive. */
|
||||||
bfd_boolean uses_64bit_indicies; /* TRUE if the index table uses 64bit entries. */
|
bfd_boolean uses_64bit_indices; /* TRUE if the index table uses 64bit entries. */
|
||||||
struct ar_hdr arhdr; /* Current archive header. */
|
struct ar_hdr arhdr; /* Current archive header. */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -4217,7 +4217,7 @@ get_section_type_name (Filedata * filedata, unsigned int sh_type)
|
|||||||
case SHT_PREINIT_ARRAY: return "PREINIT_ARRAY";
|
case SHT_PREINIT_ARRAY: return "PREINIT_ARRAY";
|
||||||
case SHT_GNU_HASH: return "GNU_HASH";
|
case SHT_GNU_HASH: return "GNU_HASH";
|
||||||
case SHT_GROUP: return "GROUP";
|
case SHT_GROUP: return "GROUP";
|
||||||
case SHT_SYMTAB_SHNDX: return "SYMTAB SECTION INDICIES";
|
case SHT_SYMTAB_SHNDX: return "SYMTAB SECTION INDICES";
|
||||||
case SHT_GNU_verdef: return "VERDEF";
|
case SHT_GNU_verdef: return "VERDEF";
|
||||||
case SHT_GNU_verneed: return "VERNEED";
|
case SHT_GNU_verneed: return "VERNEED";
|
||||||
case SHT_GNU_versym: return "VERSYM";
|
case SHT_GNU_versym: return "VERSYM";
|
||||||
@ -5485,7 +5485,7 @@ get_32bit_elf_symbols (Filedata * filedata,
|
|||||||
shndx = (Elf_External_Sym_Shndx *) get_data (NULL, filedata,
|
shndx = (Elf_External_Sym_Shndx *) get_data (NULL, filedata,
|
||||||
entry->hdr->sh_offset,
|
entry->hdr->sh_offset,
|
||||||
1, entry->hdr->sh_size,
|
1, entry->hdr->sh_size,
|
||||||
_("symbol table section indicies"));
|
_("symbol table section indices"));
|
||||||
if (shndx == NULL)
|
if (shndx == NULL)
|
||||||
goto exit_point;
|
goto exit_point;
|
||||||
/* PR17531: file: heap-buffer-overflow */
|
/* PR17531: file: heap-buffer-overflow */
|
||||||
@ -5598,7 +5598,7 @@ get_64bit_elf_symbols (Filedata * filedata,
|
|||||||
shndx = (Elf_External_Sym_Shndx *) get_data (NULL, filedata,
|
shndx = (Elf_External_Sym_Shndx *) get_data (NULL, filedata,
|
||||||
entry->hdr->sh_offset,
|
entry->hdr->sh_offset,
|
||||||
1, entry->hdr->sh_size,
|
1, entry->hdr->sh_size,
|
||||||
_("symbol table section indicies"));
|
_("symbol table section indices"));
|
||||||
if (shndx == NULL)
|
if (shndx == NULL)
|
||||||
goto exit_point;
|
goto exit_point;
|
||||||
/* PR17531: file: heap-buffer-overflow */
|
/* PR17531: file: heap-buffer-overflow */
|
||||||
@ -6842,7 +6842,7 @@ process_section_groups (Filedata * filedata)
|
|||||||
error (_("section [%5u] in group section [%5u] > maximum section [%5u]\n"),
|
error (_("section [%5u] in group section [%5u] > maximum section [%5u]\n"),
|
||||||
entry, i, filedata->file_header.e_shnum - 1);
|
entry, i, filedata->file_header.e_shnum - 1);
|
||||||
if (num_group_errors == 10)
|
if (num_group_errors == 10)
|
||||||
warn (_("Further error messages about overlarge group section indicies suppressed\n"));
|
warn (_("Further error messages about overlarge group section indices suppressed\n"));
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -19027,7 +19027,7 @@ process_archive (Filedata * filedata, bfd_boolean is_thin_archive)
|
|||||||
l += strnlen (arch.sym_table + l, arch.sym_size - l) + 1;
|
l += strnlen (arch.sym_table + l, arch.sym_size - l) + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (arch.uses_64bit_indicies)
|
if (arch.uses_64bit_indices)
|
||||||
l = (l + 7) & ~ 7;
|
l = (l + 7) & ~ 7;
|
||||||
else
|
else
|
||||||
l += l & 1;
|
l += l & 1;
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2018-07-24 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
PR 23430
|
||||||
|
* or1kcommon.cpu (spr-reg-indices): Fix description typo.
|
||||||
|
|
||||||
2018-05-09 Sebastian Rasmussen <sebras@gmail.com>
|
2018-05-09 Sebastian Rasmussen <sebras@gmail.com>
|
||||||
|
|
||||||
* or1kcommon.cpu (spr-reg-info): Typo fix.
|
* or1kcommon.cpu (spr-reg-info): Typo fix.
|
||||||
|
@ -194,7 +194,7 @@
|
|||||||
|
|
||||||
(define-normal-enum
|
(define-normal-enum
|
||||||
spr-reg-indices
|
spr-reg-indices
|
||||||
"special purpose register indicies"
|
"special purpose register indices"
|
||||||
()
|
()
|
||||||
SPR-INDEX-
|
SPR-INDEX-
|
||||||
(.map (.pmacro (args)
|
(.map (.pmacro (args)
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2018-07-24 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
PR 23430
|
||||||
|
* elf/common.h (SHT_SYMTAB_SHNDX): Fix comment typo.
|
||||||
|
|
||||||
2018-07-20 Chenghua Xu <paul.hua.gm@gmail.com>
|
2018-07-20 Chenghua Xu <paul.hua.gm@gmail.com>
|
||||||
Maciej W. Rozycki <macro@mips.com>
|
Maciej W. Rozycki <macro@mips.com>
|
||||||
|
|
||||||
|
@ -498,7 +498,7 @@
|
|||||||
#define SHT_FINI_ARRAY 15 /* Array of ptrs to finish functions */
|
#define SHT_FINI_ARRAY 15 /* Array of ptrs to finish functions */
|
||||||
#define SHT_PREINIT_ARRAY 16 /* Array of ptrs to pre-init funcs */
|
#define SHT_PREINIT_ARRAY 16 /* Array of ptrs to pre-init funcs */
|
||||||
#define SHT_GROUP 17 /* Section contains a section group */
|
#define SHT_GROUP 17 /* Section contains a section group */
|
||||||
#define SHT_SYMTAB_SHNDX 18 /* Indicies for SHN_XINDEX entries */
|
#define SHT_SYMTAB_SHNDX 18 /* Indices for SHN_XINDEX entries */
|
||||||
|
|
||||||
#define SHT_LOOS 0x60000000 /* First of OS specific semantics */
|
#define SHT_LOOS 0x60000000 /* First of OS specific semantics */
|
||||||
#define SHT_HIOS 0x6fffffff /* Last of OS specific semantics */
|
#define SHT_HIOS 0x6fffffff /* Last of OS specific semantics */
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2018-07-24 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
PR 23430
|
||||||
|
* or1k-desc.h: Regenerate.
|
||||||
|
|
||||||
2018-07-24 Jan Beulich <jbeulich@suse.com>
|
2018-07-24 Jan Beulich <jbeulich@suse.com>
|
||||||
|
|
||||||
* i386-dis-evex.h (evex_table): Add %LQ to vcvtsi2ss, vcvtsi2sd,
|
* i386-dis-evex.h (evex_table): Add %LQ to vcvtsi2ss, vcvtsi2sd,
|
||||||
|
@ -78,7 +78,7 @@ typedef enum spr_groups {
|
|||||||
, SPR_GROUP_POWER, SPR_GROUP_PIC, SPR_GROUP_TICK, SPR_GROUP_FPU
|
, SPR_GROUP_POWER, SPR_GROUP_PIC, SPR_GROUP_TICK, SPR_GROUP_FPU
|
||||||
} SPR_GROUPS;
|
} SPR_GROUPS;
|
||||||
|
|
||||||
/* Enum declaration for special purpose register indicies. */
|
/* Enum declaration for special purpose register indices. */
|
||||||
typedef enum spr_reg_indices {
|
typedef enum spr_reg_indices {
|
||||||
SPR_INDEX_SYS_VR = 0, SPR_INDEX_SYS_UPR = 1, SPR_INDEX_SYS_CPUCFGR = 2, SPR_INDEX_SYS_DMMUCFGR = 3
|
SPR_INDEX_SYS_VR = 0, SPR_INDEX_SYS_UPR = 1, SPR_INDEX_SYS_CPUCFGR = 2, SPR_INDEX_SYS_DMMUCFGR = 3
|
||||||
, SPR_INDEX_SYS_IMMUCFGR = 4, SPR_INDEX_SYS_DCCFGR = 5, SPR_INDEX_SYS_ICCFGR = 6, SPR_INDEX_SYS_DCFGR = 7
|
, SPR_INDEX_SYS_IMMUCFGR = 4, SPR_INDEX_SYS_DCCFGR = 5, SPR_INDEX_SYS_ICCFGR = 6, SPR_INDEX_SYS_DCFGR = 7
|
||||||
|
Loading…
Reference in New Issue
Block a user