Lines Matching defs:section

80 /* argp key value for --elf-section, non-ascii.  */
97 { "elf-section", ELF_INPUT_SECTION, "SECTION", OPTION_ARG_OPTIONAL,
113 { "section-groups", 'g', NULL, 0, N_("Display the section groups"), 0 },
114 { "section-headers", 'S', NULL, 0, N_("Display the sections' headers"), 0 },
130 N_("Display DWARF section content. SECTION can be one of abbrev, addr, "
151 N_("Show compression information for compressed sections (when used with -S); decompress section before dumping data (when used with -p or -x)"), 0 },
171 /* If non-null, the section from which we should read to (compressed) ELF. */
191 /* True if the section headers should be printed. */
203 /* A specific section name, or NULL to print all symbol tables. */
206 /* A specific section name, or NULL to print all ELF notes. */
212 /* True if section groups should be printed. */
221 /* True if note section content should be printed. */
224 /* True if SHF_STRINGS section content should be printed. */
239 /* True if we should print the .debug_aranges section using libdw. */
242 /* True if we should print the .debug_aranges section using libdw. */
576 fprintf (stderr, _("Unknown DWARF debug section `%s'.\n"),
663 error (0, 0, _("cannot get section header string table index"));
672 error (0, 0, _("cannot get section: %s"),
681 error (0, 0, _("cannot get section header: %s"),
689 error (0, 0, _("cannot get section name"));
704 section data in to create a file descriptor for it. */
723 error (0, 0, _("cannot write section data"));
744 /* Named section not found. */
901 /* Replace fname and fd with section content. */
907 error (0, 0, _("No such section '%s' in '%s'"),
1146 printf (_(" Start of section headers: %" PRId64 " %s\n"),
1172 printf (_(" Size of section header entries: %" PRId16 " %s\n"),
1175 printf (_(" Number of section headers entries: %" PRId16),
1194 /* We managed to get the zeroth section. */
1242 /* Print the section headers. */
1257 There are %zd section headers, starting at offset %#" PRIx64 ":\n\
1262 /* Get the section header string table index. */
1264 error_exit (0, _("cannot get section header string table index: %s"),
1287 error_exit (0, _("cannot get section: %s"),
1290 /* Get the section header. */
1294 error_exit (0, _("cannot get section header: %s"),
1357 _("bad compression header for section %zd: %s"),
1368 _("bad gnu compressed size for section %zd: %s"),
1428 there is a section at the file offset. Normally there
1429 would be a section called ".interp". But in separate
1430 .debug files it is a NOBITS section (and so doesn't match
1433 just doesn't contain any section headers, in that case
1468 /* Get the section header string table index. */
1471 error_exit (0, _("cannot get section header string table index"));
1495 error_exit (0, _("cannot get section: %s"),
1498 /* Get the section header. */
1502 error_exit (0, _("cannot get section header: %s"),
1541 /* Determine the segment this section is part of. */
1574 /* Signal that this section is only partially covered. */
1605 /* Get the data of the section. */
1617 /* Get the section header string table index. */
1620 error_exit (0, _("cannot get section header string table index"));
1629 \nCOMDAT section group [%2zu] '%s' with signature '%s' contains %zu entry:\n",
1631 \nCOMDAT section group [%2zu] '%s' with signature '%s' contains %zu entries:\n",
1668 /* Handle the section if it is a symbol table. */
1678 _("Couldn't uncompress section"),
1682 error_exit (0, _("cannot get section [%zd] header: %s"),
1830 /* Get the data of the section. */
1840 /* Get the dynamic section entry number */
1845 /* Get the section header string table index. */
1847 error_exit (0, _("cannot get section header string table index"));
1851 error_exit (0, _("invalid sh_link value in section %zu"),
1855 \nDynamic segment contains %lu entry:\n Addr: %#0*" PRIx64 " Offset: %#08" PRIx64 " Link to section: [%2u] '%s'\n",
1857 \nDynamic segment contains %lu entries:\n Addr: %#0*" PRIx64 " Offset: %#08" PRIx64 " Link to section: [%2u] '%s'\n",
2029 /* Handle the section if it is a symbol table. */
2044 /* Handle a relocation section. */
2052 /* Get the data of the section. */
2063 /* Get the section header of the section the relocations are for. */
2075 /* Search for the optional extended section index table. */
2081 /* Get the section header string table index. */
2084 error_exit (0, _("cannot get section header string table index"));
2088 \nRelocation section [%2zu] '%s' for section [%2u] '%s' at offset %#0" PRIx64 " contains %d entry:\n",
2090 \nRelocation section [%2zu] '%s' for section [%2u] '%s' at offset %#0" PRIx64 " contains %d entries:\n",
2099 /* The .rel.dyn section does not refer to a specific section but
2100 instead of section index zero. Do not try to print a section
2103 \nRelocation section [%2u] '%s' at offset %#0" PRIx64 " contains %d entry:\n",
2105 \nRelocation section [%2u] '%s' at offset %#0" PRIx64 " contains %d entries:\n",
2233 /* Handle a relocation section. */
2241 /* Get the data of the section. */
2252 /* Get the section header of the section the relocations are for. */
2264 /* Search for the optional extended section index table. */
2270 /* Get the section header string table index. */
2273 error_exit (0, _("cannot get section header string table index"));
2277 \nRelocation section [%2zu] '%s' for section [%2u] '%s' at offset %#0" PRIx64 " contains %d entry:\n",
2279 \nRelocation section [%2zu] '%s' for section [%2u] '%s' at offset %#0" PRIx64 " contains %d entries:\n",
2288 /* The .rela.dyn section does not refer to a specific section but
2289 instead of section index zero. Do not try to print a section
2292 \nRelocation section [%2u] '%s' at offset %#0" PRIx64 " contains %d entry:\n",
2294 \nRelocation section [%2u] '%s' at offset %#0" PRIx64 " contains %d entries:\n",
2433 section table. */
2438 /* Handle the section if it is a symbol table. */
2446 /* Get the section header string table index. */
2451 _("cannot get section header string table index"));
2461 _("Couldn't uncompress section"),
2466 _("cannot get section [%zd] header: %s"),
2486 /* Get the data of the section. */
2518 /* Extended section index. */
2523 /* Get the section header string table index. */
2526 error_exit (0, _("cannot get section header string table index"));
2532 error_exit (0, _("invalid sh_link value in section %zu"),
2535 /* Now we can compute the number of entries in the section. */
2571 /* Determine the real section index. */
2724 search through the section table. */
2729 /* Handle the section if it is part of the versioning handling. */
2783 /* Get the data of the section. */
2788 /* Get the section header string table index. */
2791 error_exit (0, _("cannot get section header string table index"));
2797 error_exit (0, _("invalid sh_link value in section %zu"),
2801 \nVersion needs section [%2u] '%s' contains %d entry:\n Addr: %#0*" PRIx64 " Offset: %#08" PRIx64 " Link to section: [%2u] '%s'\n",
2803 \nVersion needs section [%2u] '%s' contains %d entries:\n Addr: %#0*" PRIx64 " Offset: %#08" PRIx64 " Link to section: [%2u] '%s'\n",
2858 /* Get the data of the section. */
2863 /* Get the section header string table index. */
2866 error_exit (0, _("cannot get section header string table index"));
2872 error_exit (0, _("invalid sh_link value in section %zu"),
2877 \nVersion definition section [%2u] '%s' contains %d entry:\n Addr: %#0*" PRIx64 " Offset: %#08" PRIx64 " Link to section: [%2u] '%s'\n",
2879 \nVersion definition section [%2u] '%s' contains %d entries:\n Addr: %#0*" PRIx64 " Offset: %#08" PRIx64 " Link to section: [%2u] '%s'\n",
2944 /* Get the data of the section. */
2949 /* Get the section header string table index. */
2952 error_exit (0, _("cannot get section header string table index"));
2954 /* We have to find the version definition section and extract the
3175 error_exit (0, _("invalid sh_link value in section %zu"),
3180 \nVersion symbols section [%2u] '%s' contains %d entry:\n Addr: %#0*" PRIx64 " Offset: %#08" PRIx64 " Link to section: [%2u] '%s'",
3182 \nVersion symbols section [%2u] '%s' contains %d entries:\n Addr: %#0*" PRIx64 " Offset: %#08" PRIx64 " Link to section: [%2u] '%s'",
3192 /* Now we can finally look at the actual contents of this section. */
3249 error (0, 0, _("invalid sh_link value in section %zu"),
3256 \nHistogram for bucket list length in section [%2u] '%s' (total of %d bucket):\n Addr: %#0*" PRIx64 " Offset: %#08" PRIx64 " Link to section: [%2u] '%s'\n",
3258 \nHistogram for bucket list length in section [%2u] '%s' (total of %d buckets):\n Addr: %#0*" PRIx64 " Offset: %#08" PRIx64 " Link to section: [%2u] '%s'\n",
3317 error (0, 0, _("cannot get data for section %d: %s"),
3325 error (0, 0, _("invalid data in sysv.hash section %d"),
3354 error (0, 0, _("invalid chain in sysv.hash section %d"),
3381 error (0, 0, _("cannot get data for section %d: %s"),
3389 error (0, 0, _("invalid data in sysv.hash64 section %d"),
3420 error (0, 0, _("invalid chain in sysv.hash64 section %d"),
3447 error (0, 0, _("cannot get data for section %d: %s"),
3456 error (0, 0, _("invalid data in gnu.hash section %d"),
3541 section table. */
3545 /* Get the section header string table index. */
3548 error_exit (0, _("cannot get section header string table index"));
3553 /* Handle the section if it is a symbol table. */
3564 _("Couldn't uncompress section"),
3568 error_exit (0, _("cannot get section [%zd] header: %s"),
3590 through the section table. */
3593 /* Get the section header string table index. */
3596 error_exit (0, _("cannot get section header string table index"));
3608 \nLibrary list section [%2zu] '%s' at offset %#0" PRIx64 " contains %d entry:\n",
3610 \nLibrary list section [%2zu] '%s' at offset %#0" PRIx64 " contains %d entries:\n",
3659 through the section table. */
3662 /* Get the section header string table index. */
3665 error_exit (0, _("cannot get section header string table index"));
3682 \nObject attributes section [%2zu] '%s' of %" PRIu64
3868 /* In an ET_REL file there is a section name to refer to. */
4896 /* The dynamic segment (type PT_DYNAMIC), contains the .dynamic section.
4897 And .dynamic section contains an array of the dynamic structures.
4913 /* DT_NULL Marks end of dynamic section. */
4954 /* Use dynamic segment to get data for the string table section. */
5084 notice_listptr (enum section_e section, struct listptr_table *table,
5088 if (print_debug_sections & section)
5261 printf (_("\nDWARF section [%2zu] '%s' at offset %#" PRIx64 ":\n"
5269 printf (_("\nAbbreviation section at offset %" PRIu64 ":\n"),
5288 /* This is the NUL byte at the end of the section. */
5332 \nDWARF section [%2zu] '%s' at offset %#" PRIx64 ":\n"),
5339 /* We like to get the section from libdw to make sure they are relocated. */
5344 error (0, 0, _("cannot get .debug_addr section data: %s"),
5474 the section data. */
5550 /* Print content of DWARF .debug_aranges section. We fortunately do
5551 not have to know a bit about the structure of the section, libdwarf
5571 error (0, 0, _("invalid sh_link value in section %zu"),
5577 \nDWARF section [%2zu] '%s' at offset %#" PRIx64 " contains %zu entry:\n",
5579 \nDWARF section [%2zu] '%s' at offset %#" PRIx64 " contains %zu entries:\n",
5618 /* Print content of DWARF .debug_aranges section. */
5641 \nDWARF section [%2zu] '%s' at offset %#" PRIx64 ":\n"),
5657 error (0, 0, _("invalid data in section [%zu] '%s'"),
5799 /* Print content of DWARF .debug_rnglists section. */
5808 \nDWARF section [%2zu] '%s' at offset %#" PRIx64 ":\n"),
5833 error (0, 0, _("invalid data in section [%zu] '%s'"),
5856 the section data. */
6176 /* Print content of DWARF .debug_ranges section. */
6193 \nDWARF section [%2zu] '%s' at offset %#" PRIx64 ":\n"),
6805 \nCall frame information section [%2zu] '%s' at offset %#" PRIx64 ":\n"),
6809 \nDWARF section [%2zu] '%s' at offset %#" PRIx64 ":\n"),
6832 error (0, 0, _("invalid data in section [%zu] '%s'"),
7392 /* Only register for a real section offset. Otherwise
7395 section offset for the index when we saw the
7447 /* Only register for a real section offset. Otherwise
7450 section offset for the index when we saw the
7901 \nDWARF section [%2zu] '%s' at offset %#" PRIx64 ":\n [Offset]\n"),
7904 /* If the section is empty we don't have to do anything. */
7930 Dwarf_CU is still in the expected section. */
7972 ", Abbreviation section offset: %" PRIu64
7984 ", Abbreviation section offset: %" PRIu64
8058 "] in section '%s': %s"),
8113 section. */
8148 ", Abbreviation section offset: %" PRIu64
8198 \nDWARF section [%2zu] '%s' at offset %#" PRIx64 ":\n\n"),
8564 \nDWARF section [%2zu] '%s' at offset %#" PRIx64 ":\n"),
8577 error (0, 0, _("cannot get line data section data: %s"),
8601 error (0, 0, _("invalid data in section [%zu] '%s'"),
8609 /* Check whether we have enough room in the section. */
8729 _("invalid data at offset %tu in section [%zu] '%s'"),
9310 \nDWARF section [%2zu] '%s' at offset %#" PRIx64 ":\n"),
9335 error (0, 0, _("invalid data in section [%zu] '%s'"),
9358 the section data. */
9793 \nDWARF section [%2zu] '%s' at offset %#" PRIx64 ":\n"),
10044 \nDWARF section [%2zu] '%s' at offset %#" PRIx64 ":\n"),
10050 the section but it is easy enough to do. */
10055 error (0, 0, _("cannot get macro information section data: %s"),
10105 section. Note we keep the sentinel at the end. */
10136 %*s*** non-terminated string at end of section"),
10159 %*s*** missing DW_MACINFO_start_file argument at end of section"),
10210 \nDWARF section [%2zu] '%s' at offset %#" PRIx64 ":\n"),
10218 error (0, 0, _("cannot get macro information section data: %s"),
10277 printf (_(" unknown version, cannot parse section\n"));
10589 /* Print the known exported symbols in the DWARF section '.debug_pubnames'. */
10596 printf (_("\nDWARF section [%2zu] '%s' at offset %#" PRIx64 ":\n"),
10604 /* Print the content of the DWARF string section '.debug_str'. */
10625 printf (_("\nDWARF section [%2zu] '%s' at offset %#" PRIx64 ":\n"
10657 \nDWARF section [%2zu] '%s' at offset %#" PRIx64 ":\n"),
10664 /* We like to get the section from libdw to make sure they are relocated. */
10669 error (0, 0, _("cannot get .debug_str_offsets section data: %s"),
10690 section. */
10775 beyond the section data. */
10839 /* Print the content of the call frame search table section
10848 \nCall frame search table section [%2zu] '.eh_frame_hdr':\n"),
10896 /* +4 because of the 4 byte header of the section. */
10925 // XXX Possibly print symbol name or section offset for initial_offset
10939 /* Print the content of the exception handling table section
10950 \nException handling table section [%2zu] '.gcc_except_table':\n"),
11118 /* Print the content of the '.gdb_index' section.
11126 printf (_("\nGDB section [%2zu] '%s' at offset %#" PRIx64
11164 printf (_(" unknown version, cannot parse section\n"));
11579 /* Get the section header string table index. */
11582 error_exit (0, _("cannot get section header string table index"));
11584 /* If the .debug_info section is listed as implicitly required then
11586 section. Various other sections depend on the CU DIEs being
11653 /* A DWARF5 specialised debug string section. */
12765 /* If we have section headers, just look for SHT_NOTE sections.
12769 /* Get the section header string table index. */
12772 error_exit (0, _("cannot get section header string table index"));
12792 \nNote section [%2zu] '%s' of %" PRIu64 " bytes at offset %#0" PRIx64 ":\n"),
12867 /* We try to decompress the section, but keep the old shdr around
12874 _("Couldn't uncompress section"),
12881 _("Couldn't uncompress section"),
12888 error (0, 0, _("cannot get data for section [%zu] '%s': %s"),
12893 printf (_("\nHex dump of section [%zu] '%s', %" PRIu64
12898 printf (_("\nHex dump of section [%zu] '%s', %" PRIu64
12918 /* We try to decompress the section, but keep the old shdr around
12925 _("Couldn't uncompress section"),
12932 _("Couldn't uncompress section"),
12939 error (0, 0, _("cannot get data for section [%zu] '%s': %s"),
12944 printf (_("\nString section [%zu] '%s' contains %" PRIu64
12949 printf (_("\nString section [%zu] '%s' contains %" PRIu64
12979 /* Get the section header string table index. */
12982 error_exit (0, _("cannot get section header string table index"));
13002 error_exit (0, _("cannot get section header: %s"),
13009 /* Need to look up the section by name. */
13047 /* Get the section header string table index. */
13050 error_exit (0, _("cannot get section header string table index"));