Lines Matching full:section
120 /* Index of section header string table. */
123 /* Array to count references in section groups. */
435 ERROR (gettext ("invalid section header table offset\n")); in check_elf_header()
438 ERROR (gettext ("section header table must be present\n")); in check_elf_header()
444 /* Get the header of the zeroth section. The sh_size field in check_elf_header()
445 might contain the section number. */ in check_elf_header()
453 invalid number of section header table entries\n")); in check_elf_header()
461 /* Get the header of the zeroth section. The sh_size field in check_elf_header()
462 might contain the section number. */ in check_elf_header()
469 ERROR (gettext ("invalid section header index\n")); in check_elf_header()
475 /* Get the header of the zeroth section. The sh_info field in check_elf_header()
508 ERROR (gettext ("invalid section header size: %hd\n"), in check_elf_header()
511 ERROR (gettext ("invalid section header position or size\n")); in check_elf_header()
525 ERROR (gettext ("invalid section header size: %hd\n"), in check_elf_header()
528 ERROR (gettext ("invalid section header position or size\n")); in check_elf_header()
533 /* Check that there is a section group section with index < IDX which
534 contains section IDX and that there is exactly one. */
550 /* We cannot get the section header so we cannot check it. in check_scn_group()
551 The error to get the section header will be shown in check_scn_group()
561 /* Cannot check the section. */ in check_scn_group()
574 section [%2d] '%s': section with SHF_GROUP flag set not part of a section group\n"), in check_scn_group()
578 section [%2d] '%s': section group [%2zu] '%s' does not precede group member\n"), in check_scn_group()
593 ERROR (gettext ("section [%2d] '%s': cannot get section data\n"), in check_symtab()
606 …ERROR (gettext ("section [%2d] '%s': referenced as string table for section [%2d] '%s' but type is… in check_symtab()
612 /* Search for an extended section index table section. */ in check_symtab()
630 section [%2d] '%s': symbol table cannot have more than one extended index section\n"), in check_symtab()
642 section [%2u] '%s': entry size is does not match ElfXX_Sym\n"), in check_symtab()
650 ERROR (gettext ("section [%2d] '%s': cannot get symbol %d: %s\n"), in check_symtab()
655 ERROR (gettext ("section [%2d] '%s': '%s' in zeroth entry not zero\n"), in check_symtab()
658 ERROR (gettext ("section [%2d] '%s': '%s' in zeroth entry not zero\n"), in check_symtab()
661 ERROR (gettext ("section [%2d] '%s': '%s' in zeroth entry not zero\n"), in check_symtab()
664 ERROR (gettext ("section [%2d] '%s': '%s' in zeroth entry not zero\n"), in check_symtab()
667 ERROR (gettext ("section [%2d] '%s': '%s' in zeroth entry not zero\n"), in check_symtab()
670 ERROR (gettext ("section [%2d] '%s': '%s' in zeroth entry not zero\n"), in check_symtab()
674 section [%2d] '%s': XINDEX for zeroth entry not zero\n"), in check_symtab()
683 ERROR (gettext ("section [%2d] '%s': cannot get symbol %zu: %s\n"), in check_symtab()
693 section [%2d] '%s': symbol %zu: invalid name value\n"), in check_symtab()
708 section [%2d] '%s': symbol %zu: too large section index but no extended section index section\n"), in check_symtab()
714 section [%2d] '%s': symbol %zu: XINDEX used for index which would fit in st_shndx (%" PRIu32 ")\n"), in check_symtab()
726 section [%2d] '%s': symbol %zu: invalid section index\n"), in check_symtab()
733 ERROR (gettext ("section [%2d] '%s': symbol %zu: unknown type\n"), in check_symtab()
740 section [%2d] '%s': symbol %zu: unknown symbol binding\n"), in check_symtab()
745 section [%2d] '%s': symbol %zu: unique symbol not of object type\n"), in check_symtab()
753 section [%2d] '%s': symbol %zu: COMMON only allowed in relocatable files\n"), in check_symtab()
757 section [%2d] '%s': symbol %zu: local COMMON symbols are nonsense\n"), in check_symtab()
761 section [%2d] '%s': symbol %zu: function in COMMON section is nonsense\n"), in check_symtab()
812 section [%2d] '%s': symbol %zu: st_value out of bounds\n"), in check_symtab()
818 section [%2d] '%s': symbol %zu does not fit completely in referenced section [%2d] '%s'\n"), in check_symtab()
827 section [%2d] '%s': symbol %zu: referenced section [%2d] '%s' does not have SHF_TLS flag set\n"), in check_symtab()
834 into the section. */ in check_symtab()
837 section [%2d] '%s': symbol %zu: st_value out of bounds of referenced section [%2d] '%s'\n"), in check_symtab()
843 section [%2d] '%s': symbol %zu does not fit completely in referenced section [%2d] '%s'\n"), in check_symtab()
864 section [%2d] '%s': symbol %zu: TLS symbol but no TLS program header entry\n"), in check_symtab()
870 section [%2d] '%s': symbol %zu: TLS symbol but couldn't get TLS program header entry\n"), in check_symtab()
878 section [%2d] '%s': symbol %zu: st_value short of referenced section [%2d] '%s'\n"), in check_symtab()
885 section [%2d] '%s': symbol %zu: st_value out of bounds of referenced section [%2d] '%s'\n"), in check_symtab()
892 section [%2d] '%s': symbol %zu does not fit completely in referenced section [%2d] '%s'\n"), in check_symtab()
905 section [%2d] '%s': symbol %zu: local symbol outside range described in sh_info\n"), in check_symtab()
912 section [%2d] '%s': symbol %zu: non-local symbol outside range described in sh_info\n"), in check_symtab()
919 section [%2d] '%s': symbol %zu: non-local section symbol\n"), in check_symtab()
934 /* In a DSO, we have to find the GOT section by name. */ in check_symtab()
950 There might be a .got.plt section. */ in check_symtab()
969 section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol refers to \ in check_symtab()
970 bad section [%2d]\n"), in check_symtab()
976 section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol refers to \ in check_symtab()
977 section [%2d] '%s'\n"), in check_symtab()
990 the .got section, allowing negative offsets. */ in check_symtab()
992 section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol value %#" PRIx64 " does not match %s section addre… in check_symtab()
999 section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol size %" PRIu64 " does not match %s section size %"… in check_symtab()
1007 section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol present, but no .got section\n"), in check_symtab()
1011 /* Check that address and size match the dynamic section. in check_symtab()
1012 We locate the dynamic section via the program header in check_symtab()
1023 section [%2d] '%s': _DYNAMIC_ symbol value %#" PRIx64 " does not match dynamic segment address %#" … in check_symtab()
1030 section [%2d] '%s': _DYNAMIC symbol size %" PRIu64 " does not match dynamic segment size %" PRIu64 … in check_symtab()
1043 section [%2d] '%s': symbol %zu: symbol in dynamic symbol table with non-default visibility\n"), in check_symtab()
1047 section [%2d] '%s': symbol %zu: unknown bit set in st_other\n"), in check_symtab()
1058 /* If this is no executable or DSO it cannot be a .rel.dyn section. */ in is_rel_dyn()
1062 /* Check the section name. Unfortunately necessary. */ in is_rel_dyn()
1066 /* When a .rel.dyn section is used a DT_RELCOUNT dynamic section in is_rel_dyn()
1079 /* Found the dynamic section. Look through it. */ in is_rel_dyn()
1085 section [%2d] '%s': cannot get section data.\n"), in is_rel_dyn()
1101 section [%2d] '%s': DT_RELCOUNT used for this RELA section\n"), in is_rel_dyn()
1112 section [%2d] '%s': DT_RELCOUNT value %d too high for this section\n"), in is_rel_dyn()
1137 section [%2d] '%s': relative relocations after index %d as specified by DT_RELCOUNT\n"), in is_rel_dyn()
1143 section [%2d] '%s': non-relative relocation at index %zu; DT_RELCOUNT specified %d relative relocat… in is_rel_dyn()
1155 section [%2d] '%s': DT_RELACOUNT used for this REL section\n"), in is_rel_dyn()
1165 section [%2d] '%s': DT_RELCOUNT value %d too high for this section\n"), in is_rel_dyn()
1190 section [%2d] '%s': relative relocations after index %d as specified by DT_RELCOUNT\n"), in is_rel_dyn()
1196 section [%2d] '%s': non-relative relocation at index %zu; DT_RELCOUNT specified %d relative relocat… in is_rel_dyn()
1235 /* Check whether the link to the section we relocate is reasonable. */ in check_reloc_shdr()
1237 ERROR (gettext ("section [%2d] '%s': invalid destination section index\n"), in check_reloc_shdr()
1250 section [%2d] '%s': invalid destination section type\n"), in check_reloc_shdr()
1258 section [%2d] '%s': sh_info should be zero\n"), in check_reloc_shdr()
1266 section [%2d] '%s': no relocations for merge-able string sections possible\n"), in check_reloc_shdr()
1274 section [%2d] '%s': section entry size does not match ElfXX_Rela\n" : "\ in check_reloc_shdr()
1275 section [%2d] '%s': section entry size does not match ElfXX_Rel\n"), in check_reloc_shdr()
1282 also allow us to determine whether the same reloc section is in check_reloc_shdr()
1360 ERROR (gettext ("section [%2d] '%s': relocation %zu: invalid type\n"), in check_one_reloc()
1369 section [%2d] '%s': relocation %zu: relocation type invalid for the file type\n"), in check_one_reloc()
1377 section [%2d] '%s': relocation %zu: invalid symbol index\n"), in check_one_reloc()
1395 section [%2d] '%s': relocation %zu: only symbol '_GLOBAL_OFFSET_TABLE_' can be used with %s\n"), in check_one_reloc()
1403 // XXX TODO Check .rel.dyn section addresses. in check_one_reloc()
1412 section [%2d] '%s': relocation %zu: offset out of bounds\n"), in check_one_reloc()
1426 …ERROR (gettext ("section [%2d] '%s': relocation %zu: copy relocation against symbol of type %s\n"), in check_one_reloc()
1447 …ERROR (gettext ("section [%2d] '%s': relocation %zu: read-only section modified but text relocatio… in check_one_reloc()
1463 section [%2d] '%s': relocations are against loaded and unloaded data\n"), in check_one_reloc()
1477 ERROR (gettext ("section [%2d] '%s': cannot get section data\n"), in check_rela()
1482 /* Check the fields of the section header. */ in check_rela()
1503 section [%2d] '%s': cannot get relocation %zu: %s\n"), in check_rela()
1528 ERROR (gettext ("section [%2d] '%s': cannot get section data\n"), in check_rel()
1533 /* Check the fields of the section header. */ in check_rel()
1554 section [%2d] '%s': cannot get relocation %zu: %s\n"), in check_rel()
1629 ERROR (gettext ("more than one dynamic section present\n")); in check_dynamic()
1634 ERROR (gettext ("section [%2d] '%s': cannot get section data\n"), in check_dynamic()
1642 section [%2d] '%s': referenced as string table for section [%2d] '%s' but type is not SHT_STRTAB\n"… in check_dynamic()
1648 section [%2d]: referenced as string table for section [%2d] '%s' but section link value is invalid\… in check_dynamic()
1656 section [%2d] '%s': section entry size does not match ElfXX_Dyn\n"), in check_dynamic()
1660 ERROR (gettext ("section [%2d] '%s': sh_info not zero\n"), in check_dynamic()
1671 section [%2d] '%s': cannot get dynamic section entry %zu: %s\n"), in check_dynamic()
1679 section [%2d] '%s': non-DT_NULL entries follow DT_NULL entry\n"), in check_dynamic()
1685 ERROR (gettext ("section [%2d] '%s': entry %zu: unknown tag\n"), in check_dynamic()
1697 section [%2d] '%s': entry %zu: more than one entry with tag %s\n"), in check_dynamic()
1707 section [%2d] '%s': entry %zu: level 2 tag %s used\n"), in check_dynamic()
1725 section [%2d] '%s': entry %zu: DT_PLTREL value must be DT_REL or DT_RELA\n"), in check_dynamic()
1733 /* We require the referenced section is the same as the one in check_dynamic()
1738 section [%2d] '%s': entry %zu: pointer does not match address of section [%2d] '%s' referenced by s… in check_dynamic()
1781 section [%2d] '%s': entry %zu: %s value must point into loaded segment\n"), in check_dynamic()
1796 section [%2d] '%s': entry %zu: %s value must be valid offset in section [%2d] '%s'\n"), in check_dynamic()
1816 section [%2d] '%s': contains %s entry but not %s\n"), in check_dynamic()
1828 section [%2d] '%s': mandatory tag %s not present\n"), in check_dynamic()
1837 section [%2d] '%s': no hash section present\n"), in check_dynamic()
1844 section [%2d] '%s': contains %s entry but not %s\n"), in check_dynamic()
1852 section [%2d] '%s': not all of %s, %s, and %s are present\n"), in check_dynamic()
1859 section [%2d] '%s': not all of %s, %s, and %s are present\n"), in check_dynamic()
1869 section [%2d] '%s': %s tag missing in DSO marked during prelinking\n"), in check_dynamic()
1873 section [%2d] '%s': %s tag missing in DSO marked during prelinking\n"), in check_dynamic()
1879 section [%2d] '%s': non-DSO file marked as dependency during prelink\n"), in check_dynamic()
1890 section [%2d] '%s': %s tag missing in prelinked executable\n"), in check_dynamic()
1894 section [%2d] '%s': %s tag missing in prelinked executable\n"), in check_dynamic()
1898 section [%2d] '%s': %s tag missing in prelinked executable\n"), in check_dynamic()
1902 section [%2d] '%s': %s tag missing in prelinked executable\n"), in check_dynamic()
1914 section [%2d] '%s': only relocatable files can have extended section index\n"), in check_symtab_shndx()
1924 section [%2d] '%s': extended section index section not for symbol table\n"), in check_symtab_shndx()
1928 section [%2d] '%s': sh_link extended section index [%2d] is invalid\n"), in check_symtab_shndx()
1932 ERROR (gettext ("cannot get data for symbol section\n")); in check_symtab_shndx()
1936 section [%2d] '%s': entry size does not match Elf32_Word\n"), in check_symtab_shndx()
1945 section [%2d] '%s': extended index table too small for symbol table\n"), in check_symtab_shndx()
1949 ERROR (gettext ("section [%2d] '%s': sh_info not zero\n"), in check_symtab_shndx()
1960 section [%2d] '%s': extended section index in section [%2zu] '%s' refers to same symbol table\n"), in check_symtab_shndx()
1970 ERROR (gettext ("section [%2d] '%s': cannot get section data\n"), in check_symtab_shndx()
1976 ERROR (gettext ("symbol 0 should have zero extended section index\n")); in check_symtab_shndx()
1994 extended section index is %" PRIu32 " but symbol index is not XINDEX\n"), in check_symtab_shndx()
2010 section [%2d] '%s': hash table section is too small (is %ld, expected %ld)\n"), in check_sysv_hash()
2021 ERROR (gettext ("section [%2d] '%s': chain array too large\n"), in check_sysv_hash()
2036 section [%2d] '%s': hash bucket reference %zu out of bounds\n"), in check_sysv_hash()
2046 section [%2d] '%s': hash chain reference %zu out of bounds\n"), in check_sysv_hash()
2061 section [%2d] '%s': hash table section is too small (is %ld, expected %ld)\n"), in check_sysv_hash64()
2072 ERROR (gettext ("section [%2d] '%s': chain array too large\n"), in check_sysv_hash64()
2087 section [%2d] '%s': hash bucket reference %zu out of bounds\n"), in check_sysv_hash64()
2097 section [%2d] '%s': hash chain reference %" PRIu64 " out of bounds\n"), in check_sysv_hash64()
2110 section [%2d] '%s': not enough data\n"), in check_gnu_hash()
2122 section [%2d] '%s': bitmask size zero or not power of 2: %u\n"), in check_gnu_hash()
2138 section [%2d] '%s': hash table section is too small (is %ld, expected at least %ld)\n"), in check_gnu_hash()
2147 section [%2d] '%s': 2nd hash function shift too big: %u\n"), in check_gnu_hash()
2158 /* We need the symbol section data. */ in check_gnu_hash()
2181 section [%2d] '%s': hash chain for bucket %zu lower than symbol index bias\n"), in check_gnu_hash()
2202 section [%2d] '%s': symbol %u referenced in chain for bucket %zu is undefined\n"), in check_gnu_hash()
2215 section [%2d] '%s': hash value for symbol %u in chain for bucket %zu wrong\n"), in check_gnu_hash()
2224 section [%2d] '%s': mask index for symbol %u in chain for bucket %zu wrong\n"), in check_gnu_hash()
2254 section [%2d] '%s': hash chain for bucket %zu out of bounds\n"), in check_gnu_hash()
2259 section [%2d] '%s': symbol reference in chain for bucket %zu out of bounds\n"), in check_gnu_hash()
2265 section [%2d] '%s': bitmask does not match names in the hash table\n"), in check_gnu_hash()
2278 section [%2d] '%s': relocatable files cannot have hash tables\n"), in check_hash()
2286 ERROR (gettext ("section [%2d] '%s': cannot get section data\n"), in check_hash()
2296 section [%2d] '%s': hash table not for dynamic symbol table\n"), in check_hash()
2300 section [%2d] '%s': invalid sh_link symbol table section index [%2d]\n"), in check_hash()
2308 section [%2d] '%s': hash table entry size incorrect\n"), in check_hash()
2312 ERROR (gettext ("section [%2d] '%s': not marked to be allocated\n"), in check_hash()
2318 section [%2d] '%s': hash table has not even room for initial administrative entries\n"), in check_hash()
2391 hash section [%2zu] '%s' does not contain enough data\n"), in compare_hash_gnu_hash()
2412 hash section [%2zu] '%s' has zero bit mask words\n"), in compare_hash_gnu_hash()
2423 hash section [%2zu] '%s' uses too much data\n"), in compare_hash_gnu_hash()
2438 hash section [%2zu] '%s' invalid symbol index %" PRIu32 " (max_nsyms: %" PRIu32 ", nentries: %" PRI… in compare_hash_gnu_hash()
2456 hash section [%2zu] '%s' does not contain enough data\n"), in compare_hash_gnu_hash()
2467 hash section [%2zu] '%s' uses too much data\n"), in compare_hash_gnu_hash()
2491 hash section [%2zu] '%s' does not contain enough data\n"), in compare_hash_gnu_hash()
2504 hash section [%2zu] '%s' uses too much data\n"), in compare_hash_gnu_hash()
2525 hash section [%2zu] '%s' invalid sh_entsize\n"), in compare_hash_gnu_hash()
2534 ERROR (gettext ("section [%2zu] '%s': reference to symbol index 0\n"), in compare_hash_gnu_hash()
2538 ERROR (gettext ("section [%2zu] '%s': reference to symbol index 0\n"), in compare_hash_gnu_hash()
2573 ERROR (gettext ("section [%2d] '%s': nonzero sh_%s for NULL section\n"), \ in check_null()
2594 section [%2d] '%s': section groups only allowed in relocatable object files\n"), in check_group()
2604 ERROR (gettext ("section [%2d] '%s': cannot get symbol table: %s\n"), in check_group()
2610 section [%2d] '%s': section reference in sh_link is no symbol table\n"), in check_group()
2616 section [%2d] '%s': invalid symbol index in sh_info\n"), in check_group()
2620 ERROR (gettext ("section [%2d] '%s': sh_flags not zero\n"), in check_group()
2628 section [%2d] '%s': cannot get symbol for signature\n"), in check_group()
2632 section [%2d] '%s': cannot get symbol name for signature\n"), in check_group()
2637 section [%2d] '%s': signature symbol cannot be empty string\n"), in check_group()
2642 ERROR (gettext ("section [%2d] '%s': sh_flags not set correctly\n"), in check_group()
2648 ERROR (gettext ("section [%2d] '%s': cannot get data: %s\n"), in check_group()
2658 section [%2d] '%s': section size not multiple of sizeof(Elf32_Word)\n"), in check_group()
2663 section [%2d] '%s': section group without flags word\n"), in check_group()
2669 section [%2d] '%s': section group without member\n"), in check_group()
2673 section [%2d] '%s': section group with only one member\n"), in check_group()
2683 ERROR (gettext ("section [%2d] '%s': unknown section group flags\n"), in check_group()
2696 section [%2d] '%s': section index %zu out of range\n"), in check_group()
2705 section [%2d] '%s': cannot get section header for element %zu: %s\n"), in check_group()
2712 section [%2d] '%s': section group contains another group [%2d] '%s'\n"), in check_group()
2718 section [%2d] '%s': element %zu references section [%2d] '%s' without SHF_GROUP flag set\n"), in check_group()
2725 section [%2d] '%s' is contained in more than one section group\n"), in check_group()
2791 /* First find the relocation section for the symbol table. */ in has_copy_reloc()
2801 /* Found the section. */ in has_copy_reloc()
2900 ERROR (gettext ("section [%2d] '%s': cannot get section data\n"), in check_versym()
2915 section [%2d] '%s' refers in sh_link to section [%2d] '%s' which is no dynamic symbol table\n"), in check_versym()
2927 section [%2d] '%s' has different number of entries than symbol table [%2d] '%s'\n"), in check_versym()
2943 section [%2d] '%s': symbol %d: cannot read version data\n"), in check_versym()
2959 section [%2d] '%s': symbol %d: local symbol with global scope\n"), in check_versym()
2967 section [%2d] '%s': symbol %d: local symbol with version\n"), in check_versym()
2981 section [%2d] '%s': symbol %d: invalid version index %d\n"), in check_versym()
2986 section [%2d] '%s': symbol %d: version index %d is for defined version\n"), in check_versym()
2996 section [%2d] '%s': symbol %d: version index %d is for requested version\n"), in check_versym()
3048 ERROR (gettext ("more than one version reference section present\n")); in check_verneed()
3057 section [%2d] '%s': sh_link does not link to string table\n"), in check_verneed()
3063 ERROR (gettext ("section [%2d] '%s': cannot get section data\n"), in check_verneed()
3082 section [%2d] '%s': entry %d has wrong version %d\n"), in check_verneed()
3089 section [%2d] '%s': entry %d has wrong offset of auxiliary data\n"), in check_verneed()
3099 section [%2d] '%s': entry %d has invalid file reference\n"), in check_verneed()
3107 section [%2d] '%s': entry %d references unknown dependency\n"), in check_verneed()
3119 section [%2d] '%s': auxiliary entry %d of entry %d has unknown flag\n"), in check_verneed()
3127 section [%2d] '%s': auxiliary entry %d of entry %d has invalid name reference\n"), in check_verneed()
3136 section [%2d] '%s': auxiliary entry %d of entry %d has wrong hash value: %#x, expected %#x\n"), in check_verneed()
3145 section [%2d] '%s': auxiliary entry %d of entry %d has duplicate version name '%s'\n"), in check_verneed()
3156 section [%2d] '%s': auxiliary entry %d of entry %d has wrong next field\n"), in check_verneed()
3173 section [%2d] '%s': entry %d has invalid offset to next entry\n"), in check_verneed()
3181 section [%2d] '%s': entry %d has zero offset to next entry, but sh_info says there are more entries… in check_verneed()
3195 ERROR (gettext ("more than one version definition section present\n")); in check_verdef()
3204 section [%2d] '%s': sh_link does not link to string table\n"), in check_verdef()
3211 ERROR (gettext ("section [%2d] '%s': cannot get section data\n"), in check_verdef()
3243 section [%2d] '%s': more than one BASE definition\n"), in check_verdef()
3247 section [%2d] '%s': BASE definition must have index VER_NDX_GLOBAL\n"), in check_verdef()
3253 section [%2d] '%s': entry %d has unknown flag\n"), in check_verdef()
3258 section [%2d] '%s': entry %d has wrong version %d\n"), in check_verdef()
3265 section [%2d] '%s': entry %d has wrong offset of auxiliary data\n"), in check_verdef()
3280 section [%2d] '%s': entry %d has invalid name reference\n"), in check_verdef()
3287 section [%2d] '%s': entry %d has wrong hash value: %#x, expected %#x\n"), in check_verdef()
3295 section [%2d] '%s': entry %d has duplicate version name '%s'\n"), in check_verdef()
3315 section [%2d] '%s': entry %d has invalid name reference in auxiliary data\n"), in check_verdef()
3332 section [%2d] '%s': entry %d has wrong next field in auxiliary data\n"), in check_verdef()
3349 section [%2d] '%s': entry %d has invalid offset to next entry\n"), in check_verdef()
3357 section [%2d] '%s': entry %d has zero offset to next entry, but sh_info says there are more entries… in check_verdef()
3364 ERROR (gettext ("section [%2d] '%s': no BASE definition\n"), in check_verdef()
3381 section [%2d] '%s': unknown parent version '%s'\n"), in check_verdef()
3393 ERROR (gettext ("section [%2d] '%s': empty object attributes section\n"), in check_attributes()
3401 ERROR (gettext ("section [%2d] '%s': cannot get section data\n"), in check_attributes()
3414 ERROR (gettext ("section [%2d] '%s': unrecognized attribute format\n"), in check_attributes()
3431 section [%2d] '%s': offset %zu: zero length field in attribute section\n"), in check_attributes()
3440 section [%2d] '%s': offset %zu: invalid length in attribute section\n"), in check_attributes()
3452 section [%2d] '%s': offset %zu: unterminated vendor name string\n"), in check_attributes()
3469 section [%2d] '%s': offset %zu: endless ULEB128 in attribute subsection tag\n"), in check_attributes()
3478 section [%2d] '%s': offset %zu: truncated attribute section\n"), in check_attributes()
3487 section [%2d] '%s': offset %zu: zero length field in attribute subsection\n"), in check_attributes()
3502 section [%2d] '%s': offset %zu: invalid length in attribute subsection\n"), in check_attributes()
3513 section [%2d] '%s': offset %zu: attribute subsection has unexpected tag %u\n"), in check_attributes()
3531 section [%2d] '%s': offset %zu: endless ULEB128 in attribute tag\n"), in check_attributes()
3542 section [%2d] '%s': offset %zu: unterminated string in attribute\n"), in check_attributes()
3555 section [%2d] '%s': offset %zu: unrecognized attribute tag %u\n"), in check_attributes()
3559 section [%2d] '%s': offset %zu: unrecognized %s attribute value %" PRIu64 "\n"), in check_attributes()
3569 section [%2d] '%s': offset %zu: vendor '%s' unknown\n"), in check_attributes()
3575 section [%2d] '%s': offset %zu: extra bytes after last attribute section\n"), in check_attributes()
3651 /* No section header. */ in check_sections()
3654 /* Allocate array to count references in section groups. */ in check_sections()
3657 /* Check the zeroth section first. It must not have any contents in check_sections()
3658 and the section header must contain nonzero value at most in the in check_sections()
3663 ERROR (gettext ("cannot get section header of zeroth section\n")); in check_sections()
3667 ERROR (gettext ("zeroth section has nonzero name\n")); in check_sections()
3669 ERROR (gettext ("zeroth section has nonzero type\n")); in check_sections()
3671 ERROR (gettext ("zeroth section has nonzero flags\n")); in check_sections()
3673 ERROR (gettext ("zeroth section has nonzero address\n")); in check_sections()
3675 ERROR (gettext ("zeroth section has nonzero offset\n")); in check_sections()
3677 ERROR (gettext ("zeroth section has nonzero align value\n")); in check_sections()
3679 ERROR (gettext ("zeroth section has nonzero entry size value\n")); in check_sections()
3683 zeroth section has nonzero size value while ELF header has nonzero shnum value\n")); in check_sections()
3687 zeroth section has nonzero link value while ELF header does not signal overflow in shstrndx\n")); in check_sections()
3691 zeroth section has nonzero link value while ELF header does not signal overflow in phnum\n")); in check_sections()
3709 cannot get section header for section [%2zu] '%s': %s\n"), in check_sections()
3717 ERROR (gettext ("section [%2zu]: invalid name\n"), cnt); in check_sections()
3736 /* In a debuginfo file, any normal section can be SHT_NOBITS. in check_sections()
3745 section [%2d] '%s' has wrong type: expected %s, is %s\n"), in check_sections()
3763 section [%2zu] '%s' has wrong flags: expected %s, is %s\n"), in check_sections()
3781 section [%2zu] '%s' has wrong flags: expected %s and possibly %s, is %s\n"), in check_sections()
3799 section [%2zu] '%s' present in object file\n"), in check_sections()
3805 section [%2zu] '%s' has SHF_ALLOC flag set but there is no loadable segment\n"), in check_sections()
3810 section [%2zu] '%s' has SHF_ALLOC flag not set but there are loadable segments\n"), in check_sections()
3818 section [%2zu] '%s' is extension section index table in non-object file\n"), in check_sections()
3830 loaded section these sections also have the in check_sections()
3837 section [%2zu] '%s' has SHF_ALLOC flag set but there is no loadable segment\n"), in check_sections()
3842 section [%2zu] '%s' has SHF_ALLOC flag not set but there are loadable segments\n"), in check_sections()
3861 section [%2zu] '%s': size not multiple of entry size\n"), in check_sections()
3865 ERROR (gettext ("cannot get section header\n")); in check_sections()
3875 ERROR (gettext ("section [%2zu] '%s' has unsupported type %d\n"), in check_sections()
3890 ERROR (gettext ("section [%2zu] '%s'" in check_sections()
3897 ERROR (gettext ("section [%2zu] '%s' contains unknown flag(s)" in check_sections()
3906 section [%2zu] '%s': thread-local data sections address not zero\n"), in check_sections()
3916 section [%2zu] '%s': allocated section cannot be compressed\n"), in check_sections()
3921 section [%2zu] '%s': nobits section cannot be compressed\n"), in check_sections()
3927 section [%2zu] '%s': compressed section with no compression header: %s\n"), in check_sections()
3933 section [%2zu] '%s': invalid section reference in link value\n"), in check_sections()
3938 section [%2zu] '%s': invalid section reference in info value\n"), in check_sections()
3945 section [%2zu] '%s': strings flag set without merge flag\n"), in check_sections()
3950 section [%2zu] '%s': merge flag set but entry size is zero\n"), in check_sections()
3968 section [%2zu] '%s' has unexpected type %d for an executable section\n"), in check_sections()
3977 section [%2zu] '%s' must be of type NOBITS in debuginfo files\n"), in check_sections()
3984 section [%2zu] '%s' is both executable and writable\n"), in check_sections()
3992 /* Make sure the section is contained in a loaded segment in check_sections()
4015 section [%2zu] '%s' not fully contained in segment of program header entry %d\n"), in check_sections()
4025 section [%2zu] '%s' has type NOBITS but is read from the file in segment of program header entry %d… in check_sections()
4030 NOBITS section in the middle of a PT_LOAD in check_sections()
4033 So it really is like a PROGBITS section in check_sections()
4051 section [%2zu] '%s' has type NOBITS but is read from the file in segment of program header entry %d… in check_sections()
4062 section [%2zu] '%s' has not type NOBITS but is not read from the file in segment of program header … in check_sections()
4073 section [%2zu] '%s' is executable in nonexecutable segment %d\n"), in check_sections()
4083 section [%2zu] '%s' is writable in unwritable segment %d\n"), in check_sections()
4093 section [%2zu] '%s': alloc flag set but section not in any loaded segment\n"), in check_sections()
4099 section [%2zu] '%s': ELF header says this is the section header string table but type is not SHT_TY… in check_sections()
4107 section [%2zu] '%s': relocatable files cannot have dynamic symbol tables\n"), in check_sections()
4153 /* We cannot process this section now since we have no guarantee in check_sections()
4155 Just remember the section index. */ in check_sections()
4180 ERROR (gettext ("INTERP program header entry but no .interp section\n")); in check_sections()
4209 no .gnu.versym section present but .gnu.versym_d or .gnu.versym_r section exist\n")); in check_sections()
4236 .gnu.versym section present without .gnu.versym_d or .gnu.versym_r\n")); in check_sections()
4289 section [%2d] '%s': unknown core file note type %" PRIu32 in check_note_data()
4316 section [%2d] '%s': unknown object file note type %" PRIu32 in check_note_data()
4351 ERROR (gettext ("phdr[%d]: cannot get content of note section: %s\n"), in check_note()
4368 ERROR (gettext ("section [%2d] '%s': cannot get section data\n"), in check_note_section()
4376 section [%2d] '%s': no note entries defined for the type of file\n"), in check_note_section()
4382 ERROR (gettext ("section [%2d] '%s': cannot get content of note section\n"), in check_note_section()
4385 ERROR (gettext ("section [%2d] '%s': extra %" PRIu64 in check_note_section()
4457 /* Check that the .dynamic section, if it exists, has in check_program_header()
4468 dynamic section reference in program header has wrong offset\n")); in check_program_header()
4471 dynamic section size mismatch in program and section header\n")); in check_program_header()
4562 /* If there is an .eh_frame_hdr section it must be in check_program_header()
4586 call frame search table size mismatch in program and section header\n")); in check_program_header()
4594 /* If there is no section header table we don't in check_program_header()
4599 PT_GNU_EH_FRAME present but no .eh_frame_hdr section\n")); in check_program_header()
4603 /* The section must be allocated and not be writable and in check_program_header()
4610 section [%2zu] '%s' must be allocated\n"), elf_ndxscn (scn), ".eh_frame_hdr"); in check_program_header()
4617 section [%2zu] '%s' must not be writable\n"), in check_program_header()
4625 section [%2zu] '%s' must not be executable\n"), in check_program_header()
4658 ERROR (gettext ("executable/DSO with .eh_frame_hdr section does not have " in check_exception_data()
4707 /* Next the section headers. It is OK if there are no section in process_elf_file()
4716 /* Report if no relocation section needed the text relocation flag. */ in process_elf_file()