Home | History | Annotate | Download | only in src

Lines Matching full:section

105 /* Index of section header string table.  */
108 /* Array to count references in section groups. */
432 ERROR (gettext ("invalid section header table offset\n"));
435 ERROR (gettext ("section header table must be present\n"));
441 /* Get the header of the zeroth section. The sh_size field
442 might contain the section number. */
452 invalid number of section header table entries\n"));
460 /* Get the header of the zeroth section. The sh_size field
461 might contain the section number. */
470 ERROR (gettext ("invalid section header index\n"));
476 ERROR (gettext ("invalid section header index\n"));
497 ERROR (gettext ("invalid section header size: %hd\n"),
500 ERROR (gettext ("invalid section header position or size\n"));
514 ERROR (gettext ("invalid section header size: %hd\n"),
517 ERROR (gettext ("invalid section header position or size\n"));
522 /* Check that there is a section group section with index < IDX which
523 contains section IDX and that there is exactly one. */
545 /* We cannot get the section header so we cannot check it.
546 The error to get the section header will be shown
555 /* Cannot check the section. */
567 section [%2d] '%s': section with SHF_GROUP flag set not part of a section group\n"),
571 section [%2d] '%s': section group [%2zu] '%s' does not preceed group member\n"),
595 ERROR (gettext ("section [%2d] '%s': cannot get section data\n"),
601 ERROR (gettext ("section [%2d] '%s': referenced as string table for section [%2d] '%s' but type is not SHT_STRTAB\n"),
605 /* Search for an extended section index table section. */
634 section [%2zu] '%s': entry size is does not match ElfXX_Sym\n"),
642 ERROR (gettext ("section [%2d] '%s': cannot get symbol %d: %s\n"),
647 ERROR (gettext ("section [%2d] '%s': '%s' in zeroth entry not zero\n"),
650 ERROR (gettext ("section [%2d] '%s': '%s' in zeroth entry not zero\n"),
653 ERROR (gettext ("section [%2d] '%s': '%s' in zeroth entry not zero\n"),
656 ERROR (gettext ("section [%2d] '%s': '%s' in zeroth entry not zero\n"),
659 ERROR (gettext ("section [%2d] '%s': '%s' in zeroth entry not zero\n"),
662 ERROR (gettext ("section [%2d] '%s': '%s' in zeroth entry not zero\n"),
666 section [%2d] '%s': XINDEX for zeroth entry not zero\n"),
675 ERROR (gettext ("section [%2d] '%s': cannot get symbol %zu: %s\n"),
683 section [%2d] '%s': symbol %zu: invalid name value\n"),
696 section [%2d] '%s': symbol %zu: too large section index but no extended section index section\n"),
702 section [%2d] '%s': symbol %zu: XINDEX used for index which would fit in st_shndx (%" PRIu32 ")\n"),
714 section [%2d] '%s': symbol %zu: invalid section index\n"),
720 ERROR (gettext ("section [%2d] '%s': symbol %zu: unknown type\n"),
725 section [%2d] '%s': symbol %zu: unknown symbol binding\n"),
733 section [%2d] '%s': symbol %zu: COMMON only allowed in relocatable files\n"),
737 section [%2d] '%s': symbol %zu: local COMMON symbols are nonsense\n"),
741 section [%2d] '%s': symbol %zu: function in COMMON section is nonsense\n"),
756 section [%2d] '%s': symbol %zu: st_value out of bounds\n"),
761 section [%2d] '%s': symbol %zu does not fit completely in referenced section [%2d] '%s'\n"),
769 section [%2d] '%s': symbol %zu: referenced section [%2d] '%s' does not have SHF_TLS flag set\n"),
776 into the section. */
779 section [%2d] '%s': symbol %zu: st_value out of bounds of referenced section [%2d] '%s'\n"),
785 section [%2d] '%s': symbol %zu does not fit completely in referenced section [%2d] '%s'\n"),
806 section [%2d] '%s': symbol %zu: TLS symbol but no TLS program header entry\n"),
814 section [%2d] '%s': symbol %zu: st_value short of referenced section [%2d] '%s'\n"),
821 section [%2d] '%s': symbol %zu: st_value out of bounds of referenced section [%2d] '%s'\n"),
828 section [%2d] '%s': symbol %zu does not fit completely in referenced section [%2d] '%s'\n"),
841 section [%2d] '%s': symbol %zu: local symbol outside range described in sh_info\n"),
848 section [%2d] '%s': symbol %zu: non-local symbol outside range described in sh_info\n"),
855 section [%2d] '%s': symbol %zu: non-local section symbol\n"),
864 section named ".got". */
881 middle of the .got section, allowing
884 section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol value %#" PRIx64 " does not match .got section address %#" PRIx64 "\n"),
891 section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol size %" PRIu64 " does not match .got section size %" PRIu64 "\n"),
902 section [%2d] '%s': _GLOBAL_OFFSET_TABLE_ symbol present, but no .got section\n"),
908 section. We locate the dynamic section via the
921 section [%2d] '%s': _DYNAMIC_ symbol value %#" PRIx64 " does not match dynamic segment address %#" PRIx64 "\n"),
928 section [%2d] '%s': _DYNAMIC symbol size %" PRIu64 " does not match dynamic segment size %" PRIu64 "\n"),
945 /* If this is no executable or DSO it cannot be a .rel.dyn section. */
949 /* Check the section name. Unfortunately necessary. */
953 /* When a .rel.dyn section is used a DT_RELCOUNT dynamic section
964 /* Found the dynamic section. Look through it. */
981 section [%2d] '%s': DT_RELCOUNT value %d too high for this section\n"),
1015 ERROR (gettext ("section [%2d] '%s': cannot get section data\n"),
1020 /* Check whether the link to the section we relocate is reasonable. */
1022 ERROR (gettext ("section [%2d] '%s': invalid destination section index\n"),
1036 section [%2d] '%s': invalid destination section type\n"),
1044 section [%2d] '%s': sh_info should be zero\n"),
1051 section [%2d] '%s': no relocations for merge-able sections possible\n"),
1058 section [%2d] '%s': section entry size does not match ElfXX_Rela\n"),
1075 section [%2d] '%s': cannot get relocation %zu: %s\n"),
1081 ERROR (gettext ("section [%2d] '%s': relocation %zu: invalid type\n"),
1085 section [%2d] '%s': relocation %zu: relocation type invalid for the file type\n"),
1093 section [%2d] '%s': relocation %zu: invalid symbol index\n"),
1108 section [%2d] '%s': relocation %zu: only symbol '_GLOBAL_OFFSET_TABLE_' can be used with %s\n"),
1116 // XXX TODO Check .rel.dyn section addresses.
1123 section [%2d] '%s': relocation %zu: offset out of bounds\n"),
1150 ERROR (gettext ("section [%2d] '%s': cannot get section data\n"),
1155 /* Check whether the link to the section we relocate is reasonable. */
1157 ERROR (gettext ("section [%2d] '%s': invalid destination section index\n"),
1171 section [%2d] '%s': invalid destination section type\n"),
1179 section [%2d] '%s': sh_info should be zero\n"),
1186 section [%2d] '%s': no relocations for merge-able sections possible\n"),
1193 section [%2d] '%s': section entry size does not match ElfXX_Rel\n"),
1210 section [%2d] '%s': cannot get relocation %zu: %s\n"),
1216 ERROR (gettext ("section [%2d] '%s': relocation %zu: invalid type\n"),
1220 section [%2d] '%s': relocation %zu: relocation type invalid for the file type\n"),
1228 section [%2d] '%s': relocation %zu: invalid symbol index\n"),
1243 section [%2d] '%s': relocation %zu: only symbol '_GLOBAL_OFFSET_TABLE_' can be used with %s\n"),
1251 // XXX TODO Check .rel.dyn section addresses.
1259 section [%2d] '%s': relocation %zu: offset out of bounds\n"),
1328 ERROR (gettext ("more than one dynamic section present\n"));
1337 ERROR (gettext ("section [%2d] '%s': cannot get section data\n"),
1345 section [%2d] '%s': referenced as string table for section [%2d] '%s' but type is not SHT_STRTAB\n"),
1351 section [%2d] '%s': section entry size does not match ElfXX_Dyn\n"),
1355 ERROR (gettext ("section [%2d] '%s': sh_info not zero\n"),
1368 section [%2d] '%s': cannot get dynamic section entry %zu: %s\n"),
1376 section [%2d] '%s': non-DT_NULL entries follow DT_NULL entry\n"),
1382 ERROR (gettext ("section [%2d] '%s': entry %zu: unknown tag\n"),
1394 section [%2d] '%s': entry %zu: more than one entry with tag %s\n"),
1404 section [%2d] '%s': entry %zu: level 2 tag %s used\n"),
1416 section [%2d] '%s': entry %zu: DT_PLTREL value must be DT_REL or DT_RELA\n"),
1441 section [%2d] '%s': contains %s entry but not %s\n"),
1453 section [%2d] '%s': mandatory tag %s not present\n"),
1463 section [%2d] '%s': not all of %s, %s, and %s are present\n"),
1470 section [%2d] '%s': not all of %s, %s, and %s are present\n"),
1498 section [%2d] '%s': extended section index section not for symbol table\n"),
1502 ERROR (gettext ("cannot get data for symbol section\n"));
1506 section [%2d] '%s': entry size does not match Elf32_Word\n"),
1513 section [%2d] '%s': extended index table too small for symbol table\n"),
1517 ERROR (gettext ("section [%2d] '%s': sh_info not zero\n"),
1530 section [%2d] '%s': extended section index in section [%2zu] '%s' refers to same symbol table\n"),
1540 ERROR (gettext ("symbol 0 should have zero extended section index\n"));
1558 extended section index is %" PRIu32 " but symbol index is not XINDEX\n"),
1584 ERROR (gettext ("section [%2d] '%s': cannot get section data\n"),
1592 section [%2d] '%s': hash table not for dynamic symbol table\n"),
1597 section [%2d] '%s': entry size does not match Elf32_Word\n"),
1601 ERROR (gettext ("section [%2d] '%s': not marked to be allocated\n"),
1607 section [%2d] '%s': hash table has not even room for nbucket and nchain\n"),
1617 section [%2d] '%s': hash table section is too small (is %ld, expected %ld)\n"),
1627 ERROR (gettext ("section [%2d] '%s': chain array not large enough\n"),
1633 section [%2d] '%s': hash bucket reference %zu out of bounds\n"),
1639 section [%2d] '%s': hash chain reference %zu out of bounds\n"),
1650 ERROR (gettext ("section [%2d] '%s': nonzero sh_%s for NULL section\n"), \
1671 section [%2d] '%s': section groups only allowed in relocatable object files\n"),
1681 ERROR (gettext ("section [%2d] '%s': cannot get symbol table: %s\n"),
1687 section [%2d] '%s': section reference in sh_link is no symbol table\n"),
1693 section [%2d] '%s': invalid symbol index in sh_info\n"),
1697 ERROR (gettext ("section [%2d] '%s': sh_flags not zero\n"),
1702 ERROR (gettext ("section [%2d] '%s': sh_flags not set correctly\n"),
1708 ERROR (gettext ("section [%2d] '%s': cannot get data: %s\n"),
1718 section [%2d] '%s': section size not multiple of sizeof(Elf32_Word)\n"),
1723 section [%2d] '%s': section group without flags word\n"),
1729 section [%2d] '%s': section group without member\n"),
1733 section [%2d] '%s': section group with only one member\n"),
1743 ERROR (gettext ("section [%2d] '%s': unknown section group flags\n"),
1756 section [%2d] '%s': section index %Zu out of range\n"),
1767 section [%2d] '%s': cannot get section header for element %zu: %s\n"),
1774 section [%2d] '%s': section group contains another group [%2d] '%s'\n"),
1780 section [%2d] '%s': element %Zu references section [%2d] '%s' without SHF_GROUP flag set\n"),
1787 section [%2d] '%s' is contained in more than one section group\n"),
1912 section [%2d] '%s' refers in sh_link to section [%2d] '%s' which is no dynamic symbol table\n"),
1921 section [%2d] '%s' has different number of entries than symbol table [%2d] '%s'\n"),
1941 /* No section header. */
1944 /* Allocate array to count references in section groups. */
1947 /* Check the zeroth section first. It must not have any contents
1948 and the section header must contain nonzero value at most in the
1952 ERROR (gettext ("cannot get section header of zeroth section\n"));
1956 ERROR (gettext ("zeroth section has nonzero name\n"));
1958 ERROR (gettext ("zeroth section has nonzero type\n"));
1960 ERROR (gettext ("zeroth section has nonzero flags\n"));
1962 ERROR (gettext ("zeroth section has nonzero address\n"));
1964 ERROR (gettext ("zeroth section has nonzero offset\n"));
1966 ERROR (gettext ("zeroth section has nonzero info field\n"));
1968 ERROR (gettext ("zeroth section has nonzero align value\n"));
1970 ERROR (gettext ("zeroth section has nonzero entry size value\n"));
1974 zeroth section has nonzero size value while ELF header has nonzero shnum value\n"));
1978 zeroth section has nonzero link value while ELF header does not signal overflow in shstrndx\n"));
1990 cannot get section header for section [%2zu] '%s': %s\n"),
1998 ERROR (gettext ("section [%2zu]: invalid name\n"), cnt);
2014 section [%2d] '%s' has wrong type: expected %s, is %s\n"),
2028 section [%2zu] '%s' has wrong flags: expected %s, is %s\n"),
2045 section [%2zu] '%s' has wrong flags: expected %s and possibly %s, is %s\n"),
2063 section [%2zu] '%s' present in object file\n"),
2069 section [%2zu] '%s' has SHF_ALLOC flag set but there is no loadable segment\n"),
2074 section [%2zu] '%s' has SHF_ALLOC flag not set but there are loadable segments\n"),
2082 section [%2zu] '%s' is extension section index table in non-object file\n"),
2094 loaded section these sections also have the
2101 section [%2zu] '%s' has SHF_ALLOC flag set but there is no loadable segment\n"),
2106 section [%2zu] '%s' has SHF_ALLOC flag not set but there are loadable segments\n"),
2117 section [%2zu] '%s': size not multiple of entry size\n"),
2121 ERROR (gettext ("cannot get section header\n"));
2129 ERROR (gettext ("unsupported section type %d\n"), (int) shdr->sh_type);
2135 ERROR (gettext ("section [%2zu] '%s' contain unknown flag(s) %d\n"),
2143 section [%2zu] '%s': thread-local data sections address not zero\n"),
2151 section [%2zu] '%s': invalid section reference in link value\n"),
2156 section [%2zu] '%s': invalid section reference in info value\n"),
2163 section [%2zu] '%s': strings flag set without merge flag\n"),
2168 section [%2zu] '%s': merge flag set but entry size is zero\n"),
2176 /* Make sure the section is contained in a loaded segment
2195 section [%2zu] '%s' not fully contained in segment of program header entry %d\n"),
2202 section [%2zu] '%s' has type NOBITS but is read from the file in segment of program header entry %d\n"),
2209 section [%2zu] '%s' has not type NOBITS but is not read from the file in segment of program header entry %d\n"),
2218 section [%2zu] '%s': alloc flag set but section not in any loaded segment\n"),
2224 section [%2zu] '%s': ELF header says this is the section header string table but type is not SHT_TYPE\n"),
2273 ERROR (gettext ("INTERP program header entry but no .interp section\n"));
2290 /* ELF64 files often use note section entries in the 32-bit format.
2572 /* Next the section headers. It is OK if there are no section