]> git.ipfire.org Git - thirdparty/elfutils.git/log
thirdparty/elfutils.git
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 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 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 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 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

16 years agoRemove assert depending on confluence of guesses without anomaly.
Roland McGrath [Wed, 11 Feb 2009 01:03:19 +0000 (17:03 -0800)] 
Remove assert depending on confluence of guesses without anomaly.

16 years agoMerge branch 'dwarf' of ssh://git.fedorahosted.org/git/elfutils into dwarf
Roland McGrath [Wed, 11 Feb 2009 00:03:10 +0000 (16:03 -0800)] 
Merge branch 'dwarf' of ssh://git.fedorahosted.org/git/elfutils into dwarf

16 years agoMore work on relocation
Petr Machata [Tue, 10 Feb 2009 22:46:33 +0000 (23:46 +0100)] 
More work on relocation

16 years agoFix crash in libdw with empty input files.
Ulrich Drepper [Tue, 10 Feb 2009 20:55:07 +0000 (12:55 -0800)] 
Fix crash in libdw with empty input files.

16 years agoFix SEGV on absence of relocation data
Petr Machata [Tue, 10 Feb 2009 17:37:04 +0000 (18:37 +0100)] 
Fix SEGV on absence of relocation data

16 years agoBetter diagnostics for relocation checking; a couple bugfixes
Petr Machata [Tue, 10 Feb 2009 17:30:24 +0000 (18:30 +0100)] 
Better diagnostics for relocation checking; a couple bugfixes

16 years agoSome reloc handling in .debug_info
Petr Machata [Tue, 10 Feb 2009 03:58:30 +0000 (04:58 +0100)] 
Some reloc handling in .debug_info

16 years agoCheck ultimate form, not a form stored at abbreviation (may be INDIRECT)
Petr Machata [Tue, 10 Feb 2009 03:07:33 +0000 (04:07 +0100)] 
Check ultimate form, not a form stored at abbreviation (may be INDIRECT)

16 years agoOnly initialize coverage map if we want to find holes in section coverage
Petr Machata [Tue, 10 Feb 2009 01:41:29 +0000 (02:41 +0100)] 
Only initialize coverage map if we want to find holes in section coverage

16 years agoMove some code around
Petr Machata [Tue, 10 Feb 2009 01:13:29 +0000 (02:13 +0100)] 
Move some code around

16 years agoIsolated validation of REL/RELA sections
Petr Machata [Mon, 9 Feb 2009 23:30:52 +0000 (00:30 +0100)] 
Isolated validation of REL/RELA sections

* (We still don't check relocations against what's in the section being
   relocated.  This is just validation of REL/A section itself.)

16 years agoMerge commit 'origin/master' into dwarf
Roland McGrath [Sat, 7 Feb 2009 23:21:51 +0000 (15:21 -0800)] 
Merge commit 'origin/master' into dwarf

Conflicts:
src/ChangeLog

16 years agoAlso fix output for DW_CFA_val_expression.
Ulrich Drepper [Fri, 6 Feb 2009 06:56:39 +0000 (22:56 -0800)] 
Also fix output for DW_CFA_val_expression.

16 years agoRemove commented-out call in readelf.
Ulrich Drepper [Fri, 6 Feb 2009 06:40:46 +0000 (22:40 -0800)] 
Remove commented-out call in readelf.

16 years agoFix DW_CFA_expression output in readelf.
Ulrich Drepper [Fri, 6 Feb 2009 06:34:30 +0000 (22:34 -0800)] 
Fix DW_CFA_expression output in readelf.

16 years agoYet more label fixes in readelf output of debug_info.
Ulrich Drepper [Fri, 6 Feb 2009 06:13:05 +0000 (22:13 -0800)] 
Yet more label fixes in readelf output of debug_info.

16 years agoMinor code cleanups in objdump.
Ulrich Drepper [Fri, 6 Feb 2009 06:10:39 +0000 (22:10 -0800)] 
Minor code cleanups in objdump.

16 years agoMerge branch 'master' of ssh://git.fedorahosted.org/git/elfutils
Ulrich Drepper [Fri, 6 Feb 2009 06:09:34 +0000 (22:09 -0800)] 
Merge branch 'master' of ssh://git.fedorahosted.org/git/elfutils

Conflicts:
TODO
src/ChangeLog

16 years agoMinor output problems in readelf debug_info section printing fixed.
Ulrich Drepper [Fri, 6 Feb 2009 06:04:26 +0000 (22:04 -0800)] 
Minor output problems in readelf debug_info section printing fixed.

16 years agoDocument possible ld problem.
Ulrich Drepper [Fri, 6 Feb 2009 05:41:11 +0000 (21:41 -0800)] 
Document possible ld problem.

16 years agoMerge branch 'dwarf' of ssh://pmachata@git.fedorahosted.org/git/elfutils into dwarf
Petr Machata [Thu, 5 Feb 2009 15:48:34 +0000 (16:48 +0100)] 
Merge branch 'dwarf' of ssh://pmachata@git.fedorahosted.org/git/elfutils into dwarf

16 years agoTurn off hole-finder for coverage maps
Petr Machata [Thu, 5 Feb 2009 15:47:54 +0000 (16:47 +0100)] 
Turn off hole-finder for coverage maps

16 years agoUnaligned rangeptr pointers deserve message with impact 2, not 4
Petr Machata [Thu, 5 Feb 2009 15:29:52 +0000 (16:29 +0100)] 
Unaligned rangeptr pointers deserve message with impact 2, not 4

16 years agoComments
Roland McGrath [Wed, 4 Feb 2009 23:58:56 +0000 (15:58 -0800)] 
Comments

16 years agoFix dwarf::ranges::const_iterator::operator* end-case check.
Roland McGrath [Wed, 4 Feb 2009 23:58:41 +0000 (15:58 -0800)] 
Fix dwarf::ranges::const_iterator::operator* end-case check.

16 years agoRevert "Handle it specially when dwarf_ranges returns 1"
Roland McGrath [Wed, 4 Feb 2009 23:55:59 +0000 (15:55 -0800)] 
Revert "Handle it specially when dwarf_ranges returns 1"

This reverts commit ebd7af48a96cac696b025fab869b3611e535de64.

16 years agoIn .debug_{loc, ranges} validator, report messages with the right section and category
Petr Machata [Wed, 4 Feb 2009 17:10:46 +0000 (18:10 +0100)] 
In .debug_{loc, ranges} validator, report messages with the right section and category

16 years agoAdd --ref option that turns on reference reporting during .debug_ranges validation
Petr Machata [Wed, 4 Feb 2009 16:29:39 +0000 (17:29 +0100)] 
Add --ref option that turns on reference reporting during .debug_ranges validation

* ... and make reference reporting off by default.  Previous setting was
  overly verbose, without really being useful.

16 years agoRange checking for .debug_loc and .debug_ranges
Petr Machata [Wed, 4 Feb 2009 16:12:52 +0000 (17:12 +0100)] 
Range checking for .debug_loc and .debug_ranges

* ... and fix computation of the base address of a CU in read_die_chain

16 years agoRewrite some code in coverage_map_found_hole
Petr Machata [Wed, 4 Feb 2009 14:55:11 +0000 (15:55 +0100)] 
Rewrite some code in coverage_map_found_hole

16 years agoReorganize coverage map handling
Petr Machata [Tue, 3 Feb 2009 16:35:40 +0000 (17:35 +0100)] 
Reorganize coverage map handling

* so that it can be reused for .debug_ranges and .debug_loc

16 years agoDo the .debug_loc and .debug_ranges validation after .debug_info
Petr Machata [Tue, 3 Feb 2009 13:58:18 +0000 (14:58 +0100)] 
Do the .debug_loc and .debug_ranges validation after .debug_info

* ... as compared to /during/ .debug_info validation, which was the case
  before.

16 years agoMerge branch 'dwarf' of ssh://pmachata@git.fedorahosted.org/git/elfutils into dwarf
Petr Machata [Mon, 2 Feb 2009 17:12:03 +0000 (18:12 +0100)] 
Merge branch 'dwarf' of ssh://pmachata@git.fedorahosted.org/git/elfutils into dwarf

16 years agoSomehow I managed to overlook this...
Petr Machata [Mon, 2 Feb 2009 17:06:02 +0000 (18:06 +0100)] 
Somehow I managed to overlook this...

* ... and it causes a compilation error.  No idea how did I debug several
  changes afterwards with this missing.  I blame git for messing with my
  tree mid-commit.

16 years agoUse sorted container to do the comparisons
Petr Machata [Mon, 2 Feb 2009 17:02:31 +0000 (18:02 +0100)] 
Use sorted container to do the comparisons

16 years agoImplement check for ranges/aranges mismatch
Petr Machata [Mon, 2 Feb 2009 16:38:03 +0000 (17:38 +0100)] 
Implement check for ranges/aranges mismatch

16 years agoFix a bug and make some errors not showstoppers in aranges structural check
Petr Machata [Mon, 2 Feb 2009 16:34:24 +0000 (17:34 +0100)] 
Fix a bug and make some errors not showstoppers in aranges structural check

16 years agoconst-correctify output and where formatting functions
Petr Machata [Mon, 2 Feb 2009 16:33:21 +0000 (17:33 +0100)] 
const-correctify output and where formatting functions

16 years agoHandle it specially when dwarf_ranges returns 1
Petr Machata [Mon, 2 Feb 2009 16:32:03 +0000 (17:32 +0100)] 
Handle it specially when dwarf_ranges returns 1

16 years agoBetter spacing in objdump output for relocation sections.
Ulrich Drepper [Mon, 2 Feb 2009 05:31:26 +0000 (21:31 -0800)] 
Better spacing in objdump output for relocation sections.

16 years agoImplement attribute values in dwarf_edit.
Roland McGrath [Mon, 2 Feb 2009 04:40:36 +0000 (20:40 -0800)] 
Implement attribute values in dwarf_edit.

16 years agoReduce common code in objdump.
Ulrich Drepper [Mon, 2 Feb 2009 03:06:10 +0000 (19:06 -0800)] 
Reduce common code in objdump.
Better error value on ebl_reloc_type_name.

16 years agoVarious fixes; started location list reader interface.
Roland McGrath [Mon, 2 Feb 2009 02:34:04 +0000 (18:34 -0800)] 
Various fixes; started location list reader interface.

16 years agoPrint symbol offsets in relation list output from objdump as signed values.
Ulrich Drepper [Mon, 2 Feb 2009 02:18:55 +0000 (18:18 -0800)] 
Print symbol offsets in relation list output from objdump as signed values.

16 years agoDocument possible elf_strptr problem.
Ulrich Drepper [Mon, 2 Feb 2009 00:20:40 +0000 (16:20 -0800)] 
Document possible elf_strptr problem.

16 years agoFix argument handling in ar.
Ulrich Drepper [Mon, 2 Feb 2009 00:19:50 +0000 (16:19 -0800)] 
Fix argument handling in ar.

16 years agoDocument possible optimization in libelf.
Ulrich Drepper [Mon, 2 Feb 2009 00:19:06 +0000 (16:19 -0800)] 
Document possible optimization in libelf.

16 years agoFix error handling in a few programs.
Ulrich Drepper [Mon, 2 Feb 2009 00:18:18 +0000 (16:18 -0800)] 
Fix error handling in a few programs.

16 years agoMerge commit 'origin/master' into dwarf
Roland McGrath [Sun, 1 Feb 2009 22:25:06 +0000 (14:25 -0800)] 
Merge commit 'origin/master' into dwarf

16 years agozip.m4: Fix --with/--without argument handling.
Roland McGrath [Sun, 1 Feb 2009 22:24:46 +0000 (14:24 -0800)] 
zip.m4: Fix --with/--without argument handling.

16 years agoMerge branch 'dwarf' of ssh://pmachata@git.fedorahosted.org/git/elfutils into dwarf
Petr Machata [Sat, 31 Jan 2009 23:30:03 +0000 (00:30 +0100)] 
Merge branch 'dwarf' of ssh://pmachata@git.fedorahosted.org/git/elfutils into dwarf

16 years agoValidate .debug_aranges overlaps, uncovered parts, etc.
Petr Machata [Sat, 31 Jan 2009 23:29:42 +0000 (00:29 +0100)] 
Validate .debug_aranges overlaps, uncovered parts, etc.

16 years agoFix REALLOC macro
Petr Machata [Sat, 31 Jan 2009 23:28:57 +0000 (00:28 +0100)] 
Fix REALLOC macro

16 years agoSplit dwarflint into C and C++ part
Petr Machata [Sat, 31 Jan 2009 21:39:14 +0000 (22:39 +0100)] 
Split dwarflint into C and C++ part

* high-level checks can be written in C++ using shiny new libdw interfaces

16 years agoFix formatting of wheres
Petr Machata [Sat, 31 Jan 2009 21:36:37 +0000 (22:36 +0100)] 
Fix formatting of wheres

16 years agoFix container equality tests to handle size mismatch.
Roland McGrath [Fri, 30 Jan 2009 03:06:25 +0000 (19:06 -0800)] 
Fix container equality tests to handle size mismatch.

16 years agoMerge branch 'dwarf' of ssh://git.fedorahosted.org/git/elfutils into dwarf
Roland McGrath [Thu, 29 Jan 2009 20:37:00 +0000 (12:37 -0800)] 
Merge branch 'dwarf' of ssh://git.fedorahosted.org/git/elfutils into dwarf

16 years agoFill in message formatting info for .debug_ranges
Petr Machata [Thu, 29 Jan 2009 17:00:48 +0000 (18:00 +0100)] 
Fill in message formatting info for .debug_ranges

16 years agoValidate several location expression opcodes
Petr Machata [Thu, 29 Jan 2009 14:02:35 +0000 (15:02 +0100)] 
Validate several location expression opcodes

16 years agoFix i386 compilation
Petr Machata [Thu, 29 Jan 2009 12:42:58 +0000 (13:42 +0100)] 
Fix i386 compilation

16 years agoSafety checks in iterators.
Roland McGrath [Thu, 29 Jan 2009 08:35:10 +0000 (00:35 -0800)] 
Safety checks in iterators.

16 years agoC++ reader interface for line info
Roland McGrath [Thu, 29 Jan 2009 06:14:29 +0000 (22:14 -0800)] 
C++ reader interface for line info

16 years agoMerge commit 'origin/master' into dwarf
Roland McGrath [Thu, 29 Jan 2009 06:01:38 +0000 (22:01 -0800)] 
Merge commit 'origin/master' into dwarf

16 years agoFiddle internal type decls for C++ scoping.
Roland McGrath [Thu, 29 Jan 2009 06:00:54 +0000 (22:00 -0800)] 
Fiddle internal type decls for C++ scoping.

16 years agoMerge commit 'origin/master' into dwarf
Roland McGrath [Thu, 29 Jan 2009 02:29:39 +0000 (18:29 -0800)] 
Merge commit 'origin/master' into dwarf

Conflicts:
src/ChangeLog