]> git.ipfire.org Git - thirdparty/elfutils.git/log
thirdparty/elfutils.git
16 years agoUse newly-available --depth from dwarf-print in the test case pmachata/dwarf
Petr Machata [Thu, 26 Mar 2009 01:22:00 +0000 (02:22 +0100)] 
Use newly-available --depth from dwarf-print in the test case

16 years agoMerge branch 'dwarf' into pmachata/dwarf
Petr Machata [Thu, 26 Mar 2009 00:52:53 +0000 (01:52 +0100)] 
Merge branch 'dwarf' into pmachata/dwarf

Conflicts:
tests/ChangeLog

16 years agoAdd output limiting to dwarf-print test.
Roland McGrath [Thu, 26 Mar 2009 00:29:22 +0000 (17:29 -0700)] 
Add output limiting to dwarf-print test.

16 years ago<dwarf>: Different way to test the iterator fix
Petr Machata [Wed, 25 Mar 2009 23:50:23 +0000 (00:50 +0100)] 
<dwarf>: Different way to test the iterator fix

16 years ago<dwarf>: Don't swallow last attribute
Petr Machata [Wed, 25 Mar 2009 14:25:00 +0000 (15:25 +0100)] 
<dwarf>: Don't swallow last attribute

16 years agoMerge branch 'dwarf' of ssh://pmachata@git.fedorahosted.org/git/elfutils into dwarf
Petr Machata [Wed, 25 Mar 2009 12:55:33 +0000 (13:55 +0100)] 
Merge branch 'dwarf' of ssh://pmachata@git.fedorahosted.org/git/elfutils into dwarf

16 years agotemplate tweaks for known-dwarf.h lookup, new dwarf-print test program
Roland McGrath [Wed, 25 Mar 2009 03:02:32 +0000 (20:02 -0700)] 
template tweaks for known-dwarf.h lookup, new dwarf-print test program

16 years agoMove some generic stuff to subr.hh
Roland McGrath [Wed, 25 Mar 2009 02:09:20 +0000 (19:09 -0700)] 
Move some generic stuff to subr.hh

16 years agoClean up build hacks for libdw C++ code, still kludged but less so.
Roland McGrath [Tue, 24 Mar 2009 20:12:47 +0000 (13:12 -0700)] 
Clean up build hacks for libdw C++ code, still kludged but less so.

16 years agodwarflint: Suppress pubtypes messages even if we are not in GNU mode
Petr Machata [Tue, 24 Mar 2009 16:53:15 +0000 (17:53 +0100)] 
dwarflint: Suppress pubtypes messages even if we are not in GNU mode

16 years agodwarflint: Report "address range with no base address" for all impacted ranges
Petr Machata [Tue, 24 Mar 2009 16:51:48 +0000 (17:51 +0100)] 
dwarflint: Report "address range with no base address" for all impacted ranges

16 years agodwarflint: Fix computation of offset of abbreviation section address
Petr Machata [Tue, 24 Mar 2009 16:51:10 +0000 (17:51 +0100)] 
dwarflint: Fix computation of offset of abbreviation section address

16 years agodwarflint: Fix computation of offsets in location expressions
Petr Machata [Tue, 24 Mar 2009 16:50:14 +0000 (17:50 +0100)] 
dwarflint: Fix computation of offsets in location expressions

16 years agodwarflint: Width of DW_LNE_set_address depends on 64-bitness of target
Petr Machata [Mon, 23 Mar 2009 11:54:12 +0000 (12:54 +0100)] 
dwarflint: Width of DW_LNE_set_address depends on 64-bitness of target

16 years agodwarflint: Fix read_ctx_read_form, it returned false for DATA[124] forms
Petr Machata [Fri, 20 Mar 2009 17:28:41 +0000 (18:28 +0100)] 
dwarflint: Fix read_ctx_read_form, it returned false for DATA[124] forms

16 years agodwarflint: Only report "cause by this" messages when --ref is given
Petr Machata [Fri, 20 Mar 2009 17:03:49 +0000 (18:03 +0100)] 
dwarflint: Only report "cause by this" messages when --ref is given

16 years agodwarflint: Fix reporting of .debug_abbrev unnecessary padding offsets
Petr Machata [Fri, 20 Mar 2009 16:23:29 +0000 (17:23 +0100)] 
dwarflint: Fix reporting of .debug_abbrev unnecessary padding offsets

* ... so that it matches with values that eu-readelf reports for associated
  dummy empty section
* Also undo previous commit where I mis-fixed offset reporting

16 years agodwarflint: Fix handling of DW_LNE_end_sequence
Petr Machata [Fri, 20 Mar 2009 15:01:37 +0000 (16:01 +0100)] 
dwarflint: Fix handling of DW_LNE_end_sequence

16 years agodwarflint: Better handling of empty line programs
Petr Machata [Fri, 20 Mar 2009 14:26:07 +0000 (15:26 +0100)] 
dwarflint: Better handling of empty line programs

16 years agodwarflint: Fix reporting of .debug_line table address
Petr Machata [Fri, 20 Mar 2009 14:25:38 +0000 (15:25 +0100)] 
dwarflint: Fix reporting of .debug_line table address

16 years agodwarflint: Fix loading of opcode length table, check that opcode_base > 0
Petr Machata [Fri, 20 Mar 2009 13:57:23 +0000 (14:57 +0100)] 
dwarflint: Fix loading of opcode length table, check that opcode_base > 0

16 years agodwarflint: Fix coverage map endpoint computation
Petr Machata [Mon, 16 Mar 2009 16:41:20 +0000 (17:41 +0100)] 
dwarflint: Fix coverage map endpoint computation

16 years agodwarflint: Fix SEGV in marking invalid directory as used
Petr Machata [Mon, 16 Mar 2009 13:59:40 +0000 (14:59 +0100)] 
dwarflint: Fix SEGV in marking invalid directory as used

* Also tune displayed messages to sink mc_line | mc_header | mc_acc_bloat
  instead of mere mc_line | mc_header.

16 years agoFix 32-bit compilation
Petr Machata [Fri, 13 Mar 2009 13:27:17 +0000 (14:27 +0100)] 
Fix 32-bit compilation

16 years agodwarflint: When --nohl is given, don't run check_matching_ranges, but do run check_lo...
Petr Machata [Fri, 13 Mar 2009 13:07:07 +0000 (14:07 +0100)] 
dwarflint: When --nohl is given, don't run check_matching_ranges, but do run check_loc_or_range_structural

16 years agodwarflint: Be more descriptive about error in relocation type
Petr Machata [Thu, 12 Mar 2009 16:38:05 +0000 (17:38 +0100)] 
dwarflint: Be more descriptive about error in relocation type

16 years agodwarflint: More tools for message filtering
Petr Machata [Thu, 12 Mar 2009 13:50:23 +0000 (14:50 +0100)] 
dwarflint: More tools for message filtering

* also add rejection of messages that are mc_line && mc_header

16 years agodwarflint: Use a macro to initialize structures
Petr Machata [Thu, 12 Mar 2009 13:48:58 +0000 (14:48 +0100)] 
dwarflint: Use a macro to initialize structures

16 years agodwarflint: Re-tag categories of some messages
Petr Machata [Thu, 5 Mar 2009 16:53:49 +0000 (17:53 +0100)] 
dwarflint: Re-tag categories of some messages

16 years agodwarflint: Better message filtering system
Petr Machata [Thu, 5 Mar 2009 16:22:45 +0000 (17:22 +0100)] 
dwarflint: Better message filtering system

16 years agodwarflint: fixes in reporting in check_line_structural
Petr Machata [Thu, 5 Mar 2009 16:13:38 +0000 (17:13 +0100)] 
dwarflint: fixes in reporting in check_line_structural

16 years agodwarflint: Improve error messages in check_read_[us]leb128
Petr Machata [Thu, 5 Mar 2009 16:12:50 +0000 (17:12 +0100)] 
dwarflint: Improve error messages in check_read_[us]leb128

16 years agodwarflint: Fix a buglet in wr_format_leb128_message
Petr Machata [Thu, 5 Mar 2009 12:23:31 +0000 (13:23 +0100)] 
dwarflint: Fix a buglet in wr_format_leb128_message

16 years agodwarflint: Add --nohl switch that turns off high-level checks
Petr Machata [Thu, 5 Mar 2009 12:13:38 +0000 (13:13 +0100)] 
dwarflint: Add --nohl switch that turns off high-level checks

16 years agodwarflint: Check references from .debug_info to .debug_line
Petr Machata [Wed, 4 Mar 2009 13:59:48 +0000 (14:59 +0100)] 
dwarflint: Check references from .debug_info to .debug_line

16 years agodwarflint: Fix the way wr_message_padding_n0 gets called
Petr Machata [Wed, 4 Mar 2009 13:47:27 +0000 (14:47 +0100)] 
dwarflint: Fix the way wr_message_padding_n0 gets called

* ... and check that each padding at the end of .debug_line tables

16 years agodwarflint: Check sub_ctx instead of ctx when deciding if header has overrun
Petr Machata [Wed, 4 Mar 2009 13:05:13 +0000 (14:05 +0100)] 
dwarflint: Check sub_ctx instead of ctx when deciding if header has overrun

16 years agodwarflint: Validate DW_AT_stmt_list and record references to .debug_line
Petr Machata [Tue, 3 Mar 2009 17:21:57 +0000 (18:21 +0100)] 
dwarflint: Validate DW_AT_stmt_list and record references to .debug_line

16 years agodwarflint: Describe the field that lacks a relocation
Petr Machata [Tue, 3 Mar 2009 15:12:11 +0000 (16:12 +0100)] 
dwarflint: Describe the field that lacks a relocation

16 years agodwarflint: Validate opcode stream in .debug_line
Petr Machata [Sat, 28 Feb 2009 13:58:16 +0000 (14:58 +0100)] 
dwarflint: Validate opcode stream in .debug_line

16 years agodwarflint: Keep whether the elf file is 64-bit in struct elf_file
Petr Machata [Sat, 28 Feb 2009 13:57:21 +0000 (14:57 +0100)] 
dwarflint: Keep whether the elf file is 64-bit in struct elf_file

16 years agodwarflint: Check for unused include directories in .debug_line
Petr Machata [Fri, 27 Feb 2009 20:59:21 +0000 (21:59 +0100)] 
dwarflint: Check for unused include directories in .debug_line

16 years agodwarflint: checking headers of .debug_line
Petr Machata [Fri, 27 Feb 2009 15:25:09 +0000 (16:25 +0100)] 
dwarflint: checking headers of .debug_line

16 years agodwarflint: rename wr_checked_read_sleb128 to checked_read_sleb128
Petr Machata [Fri, 27 Feb 2009 15:24:33 +0000 (16:24 +0100)] 
dwarflint: rename wr_checked_read_sleb128 to checked_read_sleb128

* Former name likely remainder from some mass-renaming

16 years agodwarflint: new function read_ctx_read_str
Petr Machata [Fri, 27 Feb 2009 15:23:48 +0000 (16:23 +0100)] 
dwarflint: new function read_ctx_read_str

16 years agorelocation_skip_rest only takes section_data parameter now
Petr Machata [Fri, 27 Feb 2009 13:37:22 +0000 (14:37 +0100)] 
relocation_skip_rest only takes section_data parameter now

* ... which fixes a buglet where check_pub_structural would claim that
  sec_pubnames should be used for relocation_skip_rest

16 years agoSimplify some code
Petr Machata [Fri, 27 Feb 2009 12:42:17 +0000 (13:42 +0100)] 
Simplify some code

16 years agoDrop read_ctx_read_version, implement supported_version instead
Petr Machata [Fri, 27 Feb 2009 12:41:16 +0000 (13:41 +0100)] 
Drop read_ctx_read_version, implement supported_version instead

16 years agoTrack containing DIE tag in C++ reader attr_value interface.
Roland McGrath [Fri, 27 Feb 2009 00:38:20 +0000 (16:38 -0800)] 
Track containing DIE tag in C++ reader attr_value interface.

16 years agoCatch exceptions around value space operations
Petr Machata [Wed, 25 Feb 2009 15:42:46 +0000 (16:42 +0100)] 
Catch exceptions around value space operations

16 years agoCheck for expected value space of attributes
Petr Machata [Wed, 25 Feb 2009 14:45:32 +0000 (15:45 +0100)] 
Check for expected value space of attributes

16 years agoMove expected_at_map to file of its own, drop acceptable_form
Petr Machata [Wed, 25 Feb 2009 14:44:58 +0000 (15:44 +0100)] 
Move expected_at_map to file of its own, drop acceptable_form

16 years agoAllow DW_AT_artificial at DW_TAG_variable
Petr Machata [Fri, 20 Feb 2009 16:32:38 +0000 (17:32 +0100)] 
Allow DW_AT_artificial at DW_TAG_variable

16 years agoMerge branch 'dwarf' of ssh://pmachata@git.fedorahosted.org/git/elfutils into dwarf
Petr Machata [Fri, 20 Feb 2009 14:36:41 +0000 (15:36 +0100)] 
Merge branch 'dwarf' of ssh://pmachata@git.fedorahosted.org/git/elfutils into dwarf

16 years agoCheck optional/expected/required attributes
Petr Machata [Fri, 20 Feb 2009 14:31:21 +0000 (15:31 +0100)] 
Check optional/expected/required attributes

* The code currently iterates over tree of DIEs.  This will be necessary
  for checking parent vs. expected children, but for attributes, it's an
  overkill, and we should check abbreviation table instead.  Also, this
  way, we report each mistake in abbreviation table separately for each
  DIE that uses the erroneous entry.

* All attributes are marked optional.  In future, we need to go through
  the standard, or employ some other source of knowledge (hi, Roland!),
  and adjust the optionality level.

* Vast majority of entries are derived from the table in Appendix A of the
  standard.  Some were added to reflect what I found in several debuginfo
  test cases that I've tried to check.  These entries are marked with
  "XXX" comment to distinguish them from the rest.

16 years agoMake dwarfstrings.h usable from C++ by hiding the implementation to C file
Petr Machata [Fri, 20 Feb 2009 14:14:19 +0000 (15:14 +0100)] 
Make dwarfstrings.h usable from C++ by hiding the implementation to C file

16 years agoMerge commit 'elfutils-0.140' into dwarf
Roland McGrath [Fri, 20 Feb 2009 01:08:30 +0000 (17:08 -0800)] 
Merge commit 'elfutils-0.140' into dwarf

16 years agoAlways report relocation errors with offset
Petr Machata [Thu, 19 Feb 2009 15:06:13 +0000 (16:06 +0100)] 
Always report relocation errors with offset

* ... after we can actually read it, that is.

16 years agoStore relocations in own data structure
Petr Machata [Thu, 19 Feb 2009 13:51:08 +0000 (14:51 +0100)] 
Store relocations in own data structure

16 years agoCheck relocations in .debug_aranges
Petr Machata [Thu, 19 Feb 2009 12:06:08 +0000 (13:06 +0100)] 
Check relocations in .debug_aranges

16 years agoPass string table into process_file
Petr Machata [Thu, 19 Feb 2009 09:55:31 +0000 (10:55 +0100)] 
Pass string table into process_file

16 years agoDrop unnecessary function arguments at process_file
Petr Machata [Wed, 18 Feb 2009 17:02:56 +0000 (18:02 +0100)] 
Drop unnecessary function arguments at process_file

16 years agoReport relocation offset as soon as we know it
Petr Machata [Wed, 18 Feb 2009 16:23:50 +0000 (17:23 +0100)] 
Report relocation offset as soon as we know it

16 years agoDifferentiate between completely invalid and 8/16-bit relocation types
Petr Machata [Wed, 18 Feb 2009 16:23:39 +0000 (17:23 +0100)] 
Differentiate between completely invalid and 8/16-bit relocation types

16 years agoHandle DW_AT_entry_pc when deciding what the reloc target should be
Petr Machata [Wed, 18 Feb 2009 16:11:00 +0000 (17:11 +0100)] 
Handle DW_AT_entry_pc when deciding what the reloc target should be

16 years agoAccept SHN_COMMON relocations
Petr Machata [Wed, 18 Feb 2009 16:06:27 +0000 (17:06 +0100)] 
Accept SHN_COMMON relocations

16 years agoFix formatting of where formed as sec_rel of sec_locexpr
Petr Machata [Wed, 18 Feb 2009 15:36:39 +0000 (16:36 +0100)] 
Fix formatting of where formed as sec_rel of sec_locexpr

16 years agoFix operation of reloc functions when relocation data are absent
Petr Machata [Wed, 18 Feb 2009 14:27:56 +0000 (15:27 +0100)] 
Fix operation of reloc functions when relocation data are absent

16 years agoDrop unnecessary function arguments at relocate_one
Petr Machata [Wed, 18 Feb 2009 14:20:07 +0000 (15:20 +0100)] 
Drop unnecessary function arguments at relocate_one

16 years agoChecking relocations of .debug_pubnames and .debug_pubtypes
Petr Machata [Wed, 18 Feb 2009 14:06:19 +0000 (15:06 +0100)] 
Checking relocations of .debug_pubnames and .debug_pubtypes

* and "normalized" several variable names

16 years agoDrop unnecessary function arguments
Petr Machata [Wed, 18 Feb 2009 13:37:14 +0000 (14:37 +0100)] 
Drop unnecessary function arguments

16 years agoBits
Petr Machata [Wed, 18 Feb 2009 13:19:30 +0000 (14:19 +0100)] 
Bits

16 years agoNew class hl_ctx for storing information useful across high-level checks
Petr Machata [Tue, 17 Feb 2009 15:04:17 +0000 (16:04 +0100)] 
New class hl_ctx for storing information useful across high-level checks

16 years ago0.140 release. elfutils-0.140
Ulrich Drepper [Mon, 16 Feb 2009 19:02:37 +0000 (11:02 -0800)] 
0.140 release.

16 years agoCheck DW_OP_addr relocations
Petr Machata [Mon, 16 Feb 2009 16:57:02 +0000 (17:57 +0100)] 
Check DW_OP_addr relocations

* and add support for address-like relocations in general

16 years agoFix free of literal string
Petr Machata [Mon, 16 Feb 2009 16:45:40 +0000 (17:45 +0100)] 
Fix free of literal string

16 years agoFix an invalid read inside free'd (realloc error)
Petr Machata [Mon, 16 Feb 2009 16:40:57 +0000 (17:40 +0100)] 
Fix an invalid read inside free'd (realloc error)

16 years agoWarn if some location seems to lack a relocation
Petr Machata [Mon, 16 Feb 2009 16:12:06 +0000 (17:12 +0100)] 
Warn if some location seems to lack a relocation

16 years agoPass elf_file down into check_debug_info_structural
Petr Machata [Mon, 16 Feb 2009 15:14:49 +0000 (16:14 +0100)] 
Pass elf_file down into check_debug_info_structural

16 years agoRename relocation_data.elf to relocation_data.file
Petr Machata [Mon, 16 Feb 2009 14:58:14 +0000 (15:58 +0100)] 
Rename relocation_data.elf to relocation_data.file

* the old naming was confusing

16 years agoCheck that both relocs' symbols of address range have matching st_shndx
Petr Machata [Mon, 16 Feb 2009 14:49:14 +0000 (15:49 +0100)] 
Check that both relocs' symbols of address range have matching st_shndx

16 years agoImprove relocation handling
Petr Machata [Mon, 16 Feb 2009 13:44:44 +0000 (14:44 +0100)] 
Improve relocation handling

16 years agoRelocate location expression blocks
Petr Machata [Mon, 16 Feb 2009 13:38:04 +0000 (14:38 +0100)] 
Relocate location expression blocks

16 years agoFix checking of relocations of .debug_loc, .debug_ranges
Petr Machata [Mon, 16 Feb 2009 13:18:12 +0000 (14:18 +0100)] 
Fix checking of relocations of .debug_loc, .debug_ranges

* we inadvertently skipped the relocation that matched range beginning

16 years agoBetter diagnostics for range overlaps
Petr Machata [Mon, 16 Feb 2009 12:41:54 +0000 (13:41 +0100)] 
Better diagnostics for range overlaps

16 years agoFix last commit.
Roland McGrath [Sun, 15 Feb 2009 23:01:03 +0000 (15:01 -0800)] 
Fix last commit.

16 years agoHandle attribute tag GNU_Power_ABI_Struct_Return.
Roland McGrath [Sun, 15 Feb 2009 22:57:29 +0000 (14:57 -0800)] 
Handle attribute tag GNU_Power_ABI_Struct_Return.

16 years agoCheck for relocations of unreferenced portions of .debug_loc and .debug_range
Petr Machata [Fri, 13 Feb 2009 14:37:02 +0000 (15:37 +0100)] 
Check for relocations of unreferenced portions of .debug_loc and .debug_range

* also (0, 0) is considered ending only if it's not relocated

16 years agoConsider relocations below ELF_T_HALF and DW_FORM_data2 illegal
Petr Machata [Fri, 13 Feb 2009 14:35:33 +0000 (15:35 +0100)] 
Consider relocations below ELF_T_HALF and DW_FORM_data2 illegal

16 years agoReplace assert with error message
Petr Machata [Fri, 13 Feb 2009 14:33:46 +0000 (15:33 +0100)] 
Replace assert with error message

16 years agoFix build_id vaddr calculation for ET_REL modules.
Roland McGrath [Fri, 13 Feb 2009 01:26:39 +0000 (17:26 -0800)] 
Fix build_id vaddr calculation for ET_REL modules.

16 years agoSort location/range references before checking
Petr Machata [Thu, 12 Feb 2009 17:36:03 +0000 (18:36 +0100)] 
Sort location/range references before checking

* That's necessary because relocations expect monotonously increasing addresses

16 years agoChecking relocations in .debug_loc, .debug_ranges
Petr Machata [Thu, 12 Feb 2009 16:28:32 +0000 (17:28 +0100)] 
Checking relocations in .debug_loc, .debug_ranges

* and some fixes along the way

16 years agoMerge branch 'dwarf' of ssh://pmachata@git.fedorahosted.org/git/elfutils into dwarf
Petr Machata [Wed, 11 Feb 2009 22:17:23 +0000 (23:17 +0100)] 
Merge branch 'dwarf' of ssh://pmachata@git.fedorahosted.org/git/elfutils into dwarf

16 years agoChecking relocations in .debug_info
Petr Machata [Wed, 11 Feb 2009 22:16:39 +0000 (23:16 +0100)] 
Checking relocations in .debug_info

16 years agotypo
Roland McGrath [Wed, 11 Feb 2009 01:38:47 +0000 (17:38 -0800)] 
typo

16 years agoMerge branch 'master' of ssh://git.fedorahosted.org/git/elfutils
Ulrich Drepper [Wed, 11 Feb 2009 01:34:46 +0000 (17:34 -0800)] 
Merge branch 'master' of ssh://git.fedorahosted.org/git/elfutils

16 years agoDon't write uninitialized data into zeroth section header entry.
Ulrich Drepper [Wed, 11 Feb 2009 01:33:57 +0000 (17:33 -0800)] 
Don't write uninitialized data into zeroth section header entry.

16 years agoOmit module sanity checks on offline modules.
Roland McGrath [Wed, 11 Feb 2009 01:33:49 +0000 (17:33 -0800)] 
Omit module sanity checks on offline modules.

16 years agoMerge commit 'origin/master' into dwarf
Roland McGrath [Wed, 11 Feb 2009 01:03:41 +0000 (17:03 -0800)] 
Merge commit 'origin/master' into dwarf