Lines Matching refs:readelf

8 	* readelf.c (print_shdr): Use %zx to print size_t.
26 * readelf.c (options): Expand -z help text.
39 * readelf.c (argp_option): Describe --decompress,-z.
114 * readelf.c (process_file): Likewise.
149 * readelf.c (handle_core_item): Likewise, but use alloca
176 * readelf.c (print_debug_exception_table): Initialize variable before
185 * readelf.c (handle_dynamic): Likewise.
207 * readelf.c (handle_core_item): Handle right shift >= 32 bits.
237 * readelf.c (print_phdr): Make sure phdr2_mem lifetime/scope equals
242 * readelf.c (handle_gnu_hash): Free lengths on invalid_data.
256 * strings.c (readelf): Use "<unknown>" if we cannot retrieve section
275 * Makefile.am: Define ldgeneric, readelf, nm, size, strip, elflint,
386 * readelf.c (print_debug_frame_section): Cast start to Dwarf_Off
392 * readelf.c (print_gdb_index_section): Check all offsets used
397 * readelf.c (print_debug): Don't return, but always use dummy_dbg.
401 * readelf.c (print_gdb_index_section): Add overflow checking for
413 * readelf.c (dwarf_tag_string, dwarf_attr_string)
477 * readelf.c (print_debug_macinfo_section): Mark cus sentinel files
482 * readelf.c (print_debug_exception_table): Add max_action overflow
492 * readelf.c (print_cfa_program): Add bounds check before each op that
497 * readelf.c (print_decoded_line_section): Print dwarf_errmsg if
502 * readelf.c (print_debug_line_section): Correct overflow check for
508 * readelf.c (notice_listptr): Return false if offset doesn't fit
514 * readelf.c (print_ops): Don't assert when addr_size or ref_size
519 * readelf.c (print_gdb_index_section): Add more bounds checks.
523 * readelf.c (print_debug_line_section): Check there is enough room
530 * readelf.c (print_attributes): Likewise.
547 * readelf.c (print_debug_exception_table): Check TType base offset
552 * readelf.c (print_debug_frame_section): Check number of augmentation
557 * readelf.c (handle_file_note): Check count fits data section and
562 * readelf.c (print_debug_exception_table): Report invalid data if
578 * readelf.c (print_debug_line_section): max_ops_per_instr cannot
583 * readelf.c (print_ops): Handle zero ref_size for DW_OP_call_ref
595 * readelf.c (handle_sysv_hash64): Fix overflow check.
599 * readelf.c (handle_relocs_rel): Don't reuse destshdr to store
606 * readelf.c (print_debug_aranges_section): Cast Dwarf_Word length
611 * readelf.c (print_debug_line_section): Check line_range is not zero
616 * readelf.c (print_debug_aranges_section): Check length to catch
621 * readelf.c (print_attributes): Guard against empty section.
630 * readelf.c (process_elf_file): Remove redundant ehdr->e_phoff check.
640 * readelf.c (print_cfa_program): Fix sanity check of DW_FORM_block
645 * readelf.c (handle_verneed): Check vna_next and vn_next exist.
658 * readelf.c (print_debug_frame_section): Warn if ptr_size is not 4
663 * readelf (process_elf_file): Set phnum to zero if there aren't
669 * readelf.c (print_cfa_program): Check block len before calling
674 * readelf.c (print_debug_frame_section): Sanity Check CIE
679 * readelf.c (handle_versym): Check def == NULL before use.
683 * readelf.c (handle_versym): Initialize vername and filename array
688 * readelf.c (handle_sysv_hash): Sanity check section contents.
694 * readelf.c (handle_relocs_rela): Typo fix, test DESTSHDR properly.
698 * readelf.c (encoded_ptr_size): In the switch statement, change
718 * readelf.c (print_debug): Skip section if name is NULL.
722 * readelf.c (handle_relocs_rela): Print header like handle_relocs_rel
751 * readelf.c (find_no_debuginfo): Call dwfl_standard_find_debuginfo
760 * readelf.c (handle_core_item): Make sure variable length array
765 * readelf.c (print_gdb_index_section): Use unsigned int for 31 bits
776 * readelf.c (print_debug_aranges_section): Don't get the raw section
787 * readelf.c (buf_read_ulong): Pass actual long size to convert.
791 * readelf.c (attr_callback): Print DW_FORM_sdata values as signed
796 * readelf (print_phdr): Check there is a SHT_PROGBITS section at the
802 * readelf.c (print_phdr): Check phdr->p_filesz and make sure
862 * readelf.c (handle_dynamic, handle_symtab): Check for bogus sh_link.
877 * readelf.c (handle_dynamic, handle_relocs_rel)
883 * readelf.c (print_debug_macro_section): Clear vendor array before
1015 * readelf.c (format_dwarf_addr): Use dwfl_module_addrinfo to get
1034 * readelf.c (handle_core_item) <'h'>: New branch for handling
1058 * readelf.c (print_debug_ranges_section): Cast address to size_t
1068 * readelf.c (handle_file_note): New function.
1073 * readelf.c (handle_siginfo_note): New function.
1093 * readelf.c (print_ops): Take CU as argument, use it to print
1110 * readelf.c (print_ops): Format first DW_OP_GNU_implicit_pointer
1119 * readelf.c (argp_options): Add decodedline.
1128 * readelf.c (argp_option): Add decodedaranges.
1137 * readelf.c (attrcb_args): Add Dwarf_Die.
1144 * readelf.c (print_gdb_index_section): Free format_dwarf_addr results.
1148 * readelf.c (print_gdb_index_section): Accept version 8.
1171 * readelf.c (argp_option): Add unresolved-address-offsets, U.
1185 * readelf.c (struct listptr): Add base Dwarf_Addr field.
1198 * readelf.c (handle_core_items): Limit special repeated items handling
1203 * readelf.c (ELF_INPUT_SECTION): New argp key value.
1216 * readelf.c (print_debug_frame_section): Adjust FDE start address
1231 * readelf.c (print_ops): DW_OP_skip and DW_OP_bra targets are
1236 * readelf.c (ITEM_WRAP_COLUMN, REGISTER_WRAP_COLUMN): Merge to ...
1248 * readelf.c (handle_core_item) <b>: Make run an outer block variable.
1253 * readelf.c (print_debug_macro_section): Print offset as PRIx64.
1257 * readelf.c (register_info): Handle loc == NULL.
1265 * readelf.c (dwarf_tag_name): Renamed from dwarf_tag_string.
1300 * readelf.c (dwarf_form_string): Handle DW_FORM_GNU_ref_alt and
1312 * readelf.c (dwarf_lang_string): Use DW_LANG_ObjC, not DW_LANG_Objc.
1317 * readelf.c (print_ops): Handle DW_OP_GNU_parameter_ref.
1321 * readelf.c (options): Add macro to help of debug-dump.
1330 * readelf.c (print_gdb_index_section): Add version 7 support.
1336 * readelf.c (dwarf_attr_string): Add DW_AT_GNU_macros.
1340 * readelf.c (print_ops): Cast printf PRIu/x64 arguments to uint64_t
1350 * readelf.c (print_ops): Add DW_OP_GNU_push_tls_address,
1359 * readelf.c (print_debug_abbrev_section): Check there is Dwarf
1365 * readelf.c (print_gdb_index_section): Accept version 6.
1369 * readelf.c (attr_callback): Don't special case DW_FORM_sec_offset.
1382 * readelf.c: Likewise.
1426 * readelf.c (print_debug): Initialize DUMMY_DBG.elf.
1439 * readelf.c (register_info): Assume the right size of an array.
1474 * readelf.c (options, parse_opt): Grok -W/--wide and ignore it.
1508 * readelf.c (print_ops): Handle DW_OP_GNU_const_type,
1514 * readelf.c (dwarf_tag_string): Fixup DW_TAG_GNU_call_site and
1528 * readelf.c (handle_notes_data): Call ebl_object_note_type_name
1533 * readelf.c (options): Add gdb_index.
1541 * readelf.c (print_debug_line_section): Emit initial space for all
1546 * readelf.c (handle_dynamic): Don't segfault at DT_PLTREL case.
1550 * readelf.c (dwarf_tag_string): Support DW_TAG_GNU_call_site
1572 * readelf.c (reset_listptr): Clear TABLE->TABLE.
1576 * readelf.c (dwarf_attr_string): Add DW_AT_GNU_* handling.
1581 * readelf.c (section_name): New function.
1595 * readelf.c (dwarf_attr_string): Grok DW_AT_GNU_odr_signature.
1639 * readelf.c (print_ops): Handle DW_OP_GNU_implicit_pointer.
1644 * readelf.c (parse_opt): Add section_info to implicit_debug_sections
1657 * readelf.c (print_debug_ranges_section): Print empty list.
1660 * readelf.c (print_debug_loc_section): Check for bogus length
1666 * readelf.c (for_each_section_argument): Process all sections with
1671 * readelf.c (print_ops): Take new argument for CU version.
1681 * readelf.c (print_debug_frame_section): Use format_dwarf_addr for
1693 * readelf.c (print_debug_line_section): Fix braino in DW_LNS_set_isa.
1697 * readelf.c (dwarf_tag_string): Handle new v4 tags.
1701 * readelf.c (print_ops): Use 64-bit types for LEB128 operands.
1706 * readelf.c (print_debug_units): New function, broken out of ...
1712 * readelf.c (print_debug_frame_section): Handle version 4 format.
1714 * readelf.c (print_debug_line_section): Handle version 4 format.
1733 * readelf.c (dwarf_form_string): Handle DWARF 4 forms.
1737 * readelf.c (print_debug): Don't bail if libdw setup fails.
1742 * readelf.c (attr_callback): Also print form information.
1751 * readelf.c (print_ops): Take new arg OFFSET_SIZE.
1761 * readelf.c (handle_core_item): Fix bitmask printing.
1768 * readelf.c (print_hash_info): Add xgettext:no-c-format magic comment
1773 * readelf.c (process_file): Don't leak an fd in failure case.
1779 * readelf.c (print_debug_frame_section): Add a cast to avoid sign
1784 * readelf.c (print_encoding_base): Handle DW_EH_PE_absptr (zero).
1794 * readelf.c: Likewise.
1800 * readelf.c (print_ehdr): Handle PN_XNUM.
1817 * readelf.c (dwarf_attr_string): Match DW_AT_GNU_vector and
1822 * readelf.c (handle_notes_data): Grab NT_AUXV only for name "CORE".
1826 * readelf.c (implicit_debug_sections): New variable.
1831 * readelf.c (options): Repartition into set implied by -a and others.
1834 * readelf.c (struct section_argument): Add bool member 'implicit'.
1841 * readelf.c (print_string_section): Punt SHT_NOBITS like empty
1856 * readelf.c (attr_callback): Use print_block only when we don't use
1877 * readelf.c (print_block): New function.
1883 * readelf.c (print_ops): Add handling of DW_OP_implicit_value
1893 * readelf.c (attr_callback): Handle DW_Form constants for
1898 * readelf.c (register_info): New function. Handle unknown register #s.
1904 * readelf.c (print_address_names): New static variable.
1913 * readelf.c: Likewise.
1921 * readelf.c (print_relocs): Expect ELF header argument and pass on
1947 * readelf.c (print_debug_frame_section): Check for DW_CIE_ID_64 in
1952 * readelf.c (print_attributes): Treat SHT_ARM_ATTRIBUTES on EM_ARM
1955 * readelf.c (handle_core_registers): Fix error message.
1964 * readelf.c (print_cfa_program): Correct a few labels.
1983 * readelf.c (parse_opt): Likewise.
1987 * readelf.c (print_ops): Notice short length, don't overrun buffer
1990 * readelf.c (print_ops): Fix DW_OP_call[24] decoding.
1992 * readelf.c (print_ops): Print (empty)\n when LEN == 0.
1996 * readelf.c (print_debug_frame_section): Fix computation of vma_base
2005 * readelf.c (parse_opt): Move code to add to dump_data_sections and
2012 * readelf.c (print_phdr): Don't print section mapping when no sections.
2016 * readelf.c (print_debug_frame_section): Initialize IS_SIGNED to false
2021 * readelf.c (print_debug_frame_section): Use t instead of j formats
2032 * readelf.c (print_debug_exception_table): Show target of ar_disp
2048 * readelf.c: Likewise.
2061 * readelf.c: Add -e option. Dump exception and unwind related
2068 * readelf.c (print_debug_frame_section): Some fixes for last change.
2072 * readelf.c (print_encoding): Now a toplevel function.
2084 * readelf.c (handle_relocs_rel): Print section number.
2105 * readelf.c: Implement call frame debug section dumping.
2123 * readelf.c: Likewise.
2141 * readelf.c (count_dwflmod, process_file): Don't presume encoding of
2155 * readelf.c (handle_core_item): Handle 'B' type for 1-origin bitset.
2158 * readelf.c (convert): Take new argument SIZE.
2164 * readelf.c (handle_core_items): Give abridged output
2169 * readelf.c (handle_core_items): Handle ELF_T_ADDR.
2209 * readelf.c (print_attributes): Add a cast.
2224 * readelf.c (print_attributes): New function.
2352 * readelf.c (handle_core_items): Take new arg DESCSZ; if nonzero,
2377 * readelf.c: Likewise.
2403 * readelf.c: Likewise.
2410 * readelf.c (handle_relocs_rel): Use elf_scnshndx.
2413 * readelf.c: Add lots of likely/unlikely.
2419 * readelf.c (print_ops): Handle all bad op codes gracefully.
2424 * readelf.c (attr_callback): Handle DW_AT_data_location.
2440 * readelf.c (process_file): Set offline_next_address to 0 at start.
2449 * readelf.c (print_debug_line_section): For invalid data inside a
2452 * readelf.c (attr_callback): Use dwarf_formref_die, not dwarf_formref.
2456 * readelf.c (hex_dump): Fix rounding error in whitespace calculation.
2473 * readelf.c (handle_core_item): Handle 'T'|0x80 to indicate
2478 * readelf.c (check_archive_index): New function.
2493 * readelf.c (print_debug_ranges_section): Translate all strings.
2561 * readelf.c (print_ops): Use hex for address operand.
2571 * readelf.c (dump_archive_index): Avoid warning about uninitialized
2577 * readelf.c (print_archive_index): New variable.
2596 * readelf.c (handle_notes): Use sections when available.
2601 * readelf.c (handle_auxv_note): Take offset as argument, not buffer.
2608 * readelf.c (hex_dump): Fix transposed subtraction generating spaces.
2610 * readelf.c (hex_dump): Fix line header to be hex instead of decimal.
2614 * readelf.c (options): Give -p optional argument, alias --string-dump.
2627 * readelf.c (print_strings): Typo fix.
2631 * readelf.c (printf_with_wrap): Function removed.
2640 * readelf.c (ITEM_WRAP_COLUMN): New macro.
2647 * readelf.c (handle_core_registers, handle_core_items): New functions,
2668 * readelf.c (handle_auxv_note): New function.
2671 * readelf.c (printf_with_wrap, convert): New functions.
2689 * readelf.c (hex_dump): Use isprint to determine whether to print
2695 * readelf.c (print_string_sections): New variable.
2700 * readelf.c (options): Add hidden aliases --segments, --sections,
2701 as taken by binutils readelf.
2705 * readelf.c (dump_data_sections, dump_data_sections_tail):
2731 * readelf.c: Likewise.
2810 * readelf.c: Remove unused code. Add a few consts.
2814 * readelf.c (print_debug): Fix brainos in SHDR test.
2863 * readelf.c: Likewise.
2891 * readelf.c (handle_relocs_rel): Typo fix, test DESTSHDR properly.
2915 * readelf.c (handle_gnu_hash): Add casts for machines where
2934 * readelf.c: Likewise.
2958 * readelf.c: Add support for printing 64-bit SysV-style hash tables.
2968 * readelf.c: Implement showing histogram for DT_GNU_HASH section.
3055 * readelf.c (handle_relocs_rela): Better notations for addon value.
3068 * readelf.c: Likewise.
3079 * readelf.c (dwarf_tag_string, dwarf_attr_string): Update name tables
3113 * readelf.c: Lots of little cleanups. Use _unlocked functions.
3208 * readelf.c (print_debug_line_section): Correct fallout of renaming
3237 * readelf.c (print_dynamic): Use gelf_offscn.
3283 * readelf.c: Likewise.
3311 * readelf.c (print_ops): Add consts.
3315 * readelf.c (print_debug_abbrev_section): Don't bail after first CU's
3318 * readelf.c (print_debug_loc_section): Fix indentation for larger
3323 * readelf.c (print_debug_line_section): Print section offset of each
3326 * readelf.c (dwarf_attr_string): Add all attributes in <dwarf.h>.
3329 * readelf.c (attr_callback): Add 2 to addrsize * 2 for %#0* format.
3332 * readelf.c (print_ops): Take different args for indentation control.
3339 * readelf.c (options): Mention ranges for --debug-dump.
3347 * readelf.c (handle_notes): At least x86-64 need not have the note
3352 * readelf.c (dwarf_tag_string): Add new tags.
3380 * readelf.c (parse_opt): Make any_control_option variable
3396 * readelf.c (print_debug_abbrev_section): Don't print error when end of
3401 * readelf.c (dwarf_encoding_string): New function.
3445 * readelf.c: Likewise.
3472 * readelf.c: Likewise.
3479 * readelf.c (main): Don't check for parameter problems here.
3486 * readelf.c: Likewise.
3497 * readelf.c (print_phdr): In section mapping, also indicate
3502 * readelf.c: Make compile with gcc 4.0.
3516 * readelf.c: Print SHT_GNU_LIBLIST sections.
3531 * readelf.c: Likewise.
3534 * readelf.c (print_debug_line_section): Determine address size
3539 * readelf.c (print_phdr): Show which sections are covered by the
3544 * readelf.c (print_debug_macinfo_section): Implement.
3548 * readelf.c (print_debug_line_section): Implement.
3555 * src/readelf.c: Likewise.
3565 * readelf.c (print_debug_info_section): Free dies memory.
3567 * readelf.c: Print .debug_info section content.
3571 * readelf.c (print_shdr): Add support for SHF_ORDERED and SHF_EXCLUDE.
3575 * readelf.c (print_debug_aranges): Implement using libdw.
3581 * readelf.c: Use libdw instead of libdwarf. Not all of the old
3583 * Makefile.am: Link readelf with libdw. Remove libdwarf include path.
3607 * readelf.c: Likewise.
3618 * readelf.c (handle_dynamic): Make column for tag name wider.
3622 * readelf.c (handle_dynamic): Always terminate tag name with a space.