]> git.ipfire.org Git - thirdparty/elfutils.git/log
thirdparty/elfutils.git
12 years agoMerge branch 'jankratochvil/forunwind-baseaddr-hookvars' into jankratochvil/forunwind... jankratochvil/forunwind-baseaddr-hookvars-corereport
Jan Kratochvil [Fri, 16 Nov 2012 16:33:09 +0000 (17:33 +0100)] 
Merge branch 'jankratochvil/forunwind-baseaddr-hookvars' into jankratochvil/forunwind-baseaddr-hookvars-corereport

12 years agoMerge branch 'jankratochvil/forunwind-baseaddr' into jankratochvil/forunwind-baseaddr...
Jan Kratochvil [Fri, 16 Nov 2012 16:33:09 +0000 (17:33 +0100)] 
Merge branch 'jankratochvil/forunwind-baseaddr' into jankratochvil/forunwind-baseaddr-hookvars

12 years agoMerge branch 'jankratochvil/forunwind' into jankratochvil/forunwind-baseaddr
Jan Kratochvil [Fri, 16 Nov 2012 16:33:08 +0000 (17:33 +0100)] 
Merge branch 'jankratochvil/forunwind' into jankratochvil/forunwind-baseaddr

12 years agoMerge branch 'jankratochvil/s390-core' into jankratochvil/forunwind
Jan Kratochvil [Fri, 16 Nov 2012 16:33:02 +0000 (17:33 +0100)] 
Merge branch 'jankratochvil/s390-core' into jankratochvil/forunwind

Conflicts:
backends/ChangeLog
tests/Makefile.am

12 years agoMerge branch 'jankratochvil/ppc64-opd' into jankratochvil/forunwind
Jan Kratochvil [Fri, 16 Nov 2012 16:32:14 +0000 (17:32 +0100)] 
Merge branch 'jankratochvil/ppc64-opd' into jankratochvil/forunwind

Conflicts:
backends/ChangeLog
libdwfl/ChangeLog
tests/Makefile.am

12 years agoMerge branch 'jankratochvil/pie-core' into jankratochvil/forunwind
Jan Kratochvil [Fri, 16 Nov 2012 16:31:10 +0000 (17:31 +0100)] 
Merge branch 'jankratochvil/pie-core' into jankratochvil/forunwind

Conflicts:
libdwfl/ChangeLog
tests/ChangeLog
tests/Makefile.am

12 years agoMerge branch 'jankratochvil/auxv32' into jankratochvil/forunwind
Jan Kratochvil [Fri, 16 Nov 2012 16:30:01 +0000 (17:30 +0100)] 
Merge branch 'jankratochvil/auxv32' into jankratochvil/forunwind

Conflicts:
libdwfl/ChangeLog

12 years agoMerge branch 'jankratochvil/forunwind-baseaddr-hookvars' into jankratochvil/forunwind...
Jan Kratochvil [Fri, 16 Nov 2012 16:16:37 +0000 (17:16 +0100)] 
Merge branch 'jankratochvil/forunwind-baseaddr-hookvars' into jankratochvil/forunwind-baseaddr-hookvars-corereport

12 years agoMerge branch 'jankratochvil/forunwind-baseaddr' into jankratochvil/forunwind-baseaddr...
Jan Kratochvil [Fri, 16 Nov 2012 16:16:37 +0000 (17:16 +0100)] 
Merge branch 'jankratochvil/forunwind-baseaddr' into jankratochvil/forunwind-baseaddr-hookvars

12 years agoMerge branch 'pending' into jankratochvil/forunwind-baseaddr
Jan Kratochvil [Fri, 16 Nov 2012 16:11:41 +0000 (17:11 +0100)] 
Merge branch 'pending' into jankratochvil/forunwind-baseaddr

12 years agoMerge branch 'jankratochvil/basecleanup-basealign' into pending
Jan Kratochvil [Fri, 16 Nov 2012 16:11:31 +0000 (17:11 +0100)] 
Merge branch 'jankratochvil/basecleanup-basealign' into pending

Conflicts:
tests/dwfl-report-elf-align.c

12 years agolibdwfl/
Jan Kratochvil [Sat, 27 Oct 2012 18:50:21 +0000 (20:50 +0200)] 
libdwfl/
* dwfl_report_elf.c (__libdwfl_report_elf): Remove BASE aligning.

tests/
* Makefile.am (check_PROGRAMS): Add dwfl-report-elf-align.
(TESTS): Add run-dwfl-report-elf-align.sh.
(EXTRA_DIST): Add run-dwfl-report-elf-align.sh and
testfile-dwfl-report-elf-align-shlib.so.bz2 .
(dwfl_report_elf_align_LDADD): New.
* dwfl-report-elf-align.c: New file.
* run-dwfl-report-elf-align.sh: New file.
* testfile-dwfl-report-elf-align-shlib.so.bz2: New file.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
12 years ago.
Jan Kratochvil [Mon, 12 Nov 2012 20:28:31 +0000 (21:28 +0100)] 
.

12 years ago+dwfl_core_filename_report
Jan Kratochvil [Mon, 12 Nov 2012 20:21:58 +0000 (21:21 +0100)] 
+dwfl_core_filename_report

12 years agoMerge branch 'jankratochvil/forunwind-baseaddr' into jankratochvil/forunwind-baseaddr...
Jan Kratochvil [Mon, 12 Nov 2012 19:55:02 +0000 (20:55 +0100)] 
Merge branch 'jankratochvil/forunwind-baseaddr' into jankratochvil/forunwind-baseaddr-hookvars

12 years ago.
Jan Kratochvil [Mon, 12 Nov 2012 19:54:55 +0000 (20:54 +0100)] 
.

12 years ago+EBLHOOKVAR
Jan Kratochvil [Mon, 12 Nov 2012 16:20:59 +0000 (17:20 +0100)] 
+EBLHOOKVAR

/* Number of Dwarf_Frame_State->regs entries to allocate for frame_state
   above.  */
size_t EBLHOOKVAR(frame_state_nregs);

12 years ago+dwfl_report_elf_baseaddr
Jan Kratochvil [Mon, 12 Nov 2012 14:41:10 +0000 (15:41 +0100)] 
+dwfl_report_elf_baseaddr

12 years agoMerge branch 'jankratochvil/basecleanup-basealign' into pending
Jan Kratochvil [Mon, 12 Nov 2012 14:40:43 +0000 (15:40 +0100)] 
Merge branch 'jankratochvil/basecleanup-basealign' into pending

12 years agolibdwfl/
Jan Kratochvil [Sat, 27 Oct 2012 18:50:21 +0000 (20:50 +0200)] 
libdwfl/
* dwfl_report_elf.c (__libdwfl_report_elf): Remove BASE aligning.

tests/
* Makefile.am (check_PROGRAMS): Add dwfl-report-elf-align.
(TESTS): Add run-dwfl-report-elf-align.sh.
(EXTRA_DIST): Add run-dwfl-report-elf-align.sh and
testfile-dwfl-report-elf-align-shlib.so.bz2 .
(dwfl_report_elf_align_LDADD): New.
* dwfl-report-elf-align.c: New file.
* run-dwfl-report-elf-align.sh: New file.
* testfile-dwfl-report-elf-align-shlib.so.bz2: New file.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
12 years agobackends/
Jan Kratochvil [Wed, 10 Oct 2012 17:32:05 +0000 (19:32 +0200)] 
backends/
* Makefile.am (s390_SRCS): Add s390_corenote.c and s390x_corenote.c.
* linux-core-note.c (ALIGN_PR_REG): New definitions.
(struct EBLHOOK(prstatus)): Change field pr_reg to anonymous union with
ALIGN_PR_REG.
(EXTRA_ITEMS): New macro.
* s390_corenote.c: New file.
* s390_init.c (s390x_core_note): New declaration.
(s390_init): Install s390x_core_note and s390_core_note.
* s390x_corenote.c: New file.

src/
* readelf.c (handle_core_items): Limit special repeated items handling
to single-item formats '\n', 'b' and 'B', assert OFFSET 0 there.

tests/
* run-readelf-mixed-corenote.sh: New testcase for readelf -n of s390
and s390x core notes.
* testfile67.bz2: New file.
* testfile68.bz2: New file.
* Makefile.am (EXTRA_DIST): Add testfile67.bz2 and testfile68.bz2 .

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
12 years agobackends/
Jan Kratochvil [Wed, 10 Oct 2012 07:48:10 +0000 (09:48 +0200)] 
backends/
        * Makefile.am (INCLUDES): Add libdwfl.
        (ppc64_SRCS): Add ppc64_get_func_pc.c.
        * ppc64_get_func_pc.c: New file.
        * ppc64_init.c (ppc64_init): Install get_func_pc and destr.

libdwfl/
        * dwfl_module_addrsym.c (dwfl_module_addrsym) (get_section): New
        function from ...
        (dwfl_module_addrsym) (same_section): ... here.  Call it.
        (dwfl_module_addrsym) (found_sym): New function from ...
        (dwfl_module_addrsym) (search_table): ... here.  Call it.  Try second
        time with ebl_get_func_pc.

libebl/
        * Makefile.am (gen_SOURCES): Add eblgetfuncpc.c.
        * ebl-hooks.h (get_func_pc): New entry.
        * eblgetfuncpc.c: New file.
        * libebl.h (struct Dwfl_Module): New declaration.
        (ebl_get_func_pc): New declaration.
        * libeblP.h (struct ebl): New field backend.

tests/
        * run-addrname-test.sh: New testcase for ppc64 function descriptors.
        * testfile66.bz2: New file.
* Makefile.am (EXTRA_DIST): Add testfile66.bz2.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
12 years agolibdwfl/
Jan Kratochvil [Wed, 17 Oct 2012 22:11:30 +0000 (00:11 +0200)] 
libdwfl/
* argp-std.c (offline_find_elf): New function.
(offline_callbacks): Use it for FIND_ELF.
(struct parse_opt): New.
(parse_opt): New KEY ARGP_KEY_INIT.  In other make HOOK struct
parse_opt pointer from former Dwfl pointer.  Delay 'e and OPT_COREFILE
processing till ARGP_KEY_SUCCESS.  Initialize state->INPUT already from
ARGP_KEY_SUCCESS.  Modify the cleanup in ARGP_KEY_ERROR.  Make the final state->INPUT initialization optional.
* libdwfl.h (dwfl_standard_argp): Extend the comment for USERDATA.

tests/
* run-addrname-test.sh: New test for PIE relocation.
* testfile70.core.bz2: New file.
* testfile70.exec.bz2: New file.
* Makefile.am (EXTRA_DIST): Add testfile70.core.bz2 and
testfile70.exec.bz2 .

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
12 years agolibdwfl/
Jan Kratochvil [Wed, 10 Oct 2012 18:42:30 +0000 (20:42 +0200)] 
libdwfl/
linux-proc-maps.c: Include system.h.
(PROCEXEFMT, get_pid_class): New.
(grovel_auxv): Detect 32-bit vs. 64-bit auxv, possibly call get_pid_class.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
12 years agolibdwfl/
Jan Kratochvil [Sat, 27 Oct 2012 18:45:27 +0000 (20:45 +0200)] 
libdwfl/
* dwfl_report_elf.c (__libdwfl_report_elf): Simplify START and BIAS
calculation.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
12 years agotests/
Jan Kratochvil [Sat, 27 Oct 2012 19:31:58 +0000 (21:31 +0200)] 
tests/
* Makefile.am (EXTRA_DIST): Add testfile64.bz2, testfile65.bz2,
testfile69.core.bz2 and testfile69.so.bz2 .

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
12 years agoMerge branch 'jankratochvil/pie-core' into pending
Jan Kratochvil [Wed, 17 Oct 2012 22:22:41 +0000 (00:22 +0200)] 
Merge branch 'jankratochvil/pie-core' into pending

12 years agolibdwfl/
Jan Kratochvil [Wed, 17 Oct 2012 22:11:30 +0000 (00:11 +0200)] 
libdwfl/
2012-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>

* argp-std.c (offline_find_elf): New function.
(offline_callbacks): Use it for FIND_ELF.
(struct parse_opt): New.
(parse_opt): New KEY ARGP_KEY_INIT.  In other make HOOK struct
parse_opt pointer from former Dwfl pointer.  Delay 'e and OPT_COREFILE
processing till ARGP_KEY_SUCCESS.  Initialize state->INPUT already from
ARGP_KEY_SUCCESS.  Modify the cleanup in ARGP_KEY_ERROR.  Make the final state->INPUT initialization optional.
* libdwfl.h (dwfl_standard_argp): Extend the comment for USERDATA.

tests/
2012-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>

* run-addrname-test.sh: New test for PIE relocation.
* testfile70.core.bz2: New file.
* testfile70.exec.bz2: New file.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
12 years agoMerge branch 'jankratochvil/buildid-bias' into pending
Jan Kratochvil [Wed, 17 Oct 2012 20:21:29 +0000 (22:21 +0200)] 
Merge branch 'jankratochvil/buildid-bias' into pending

Conflicts:
libdwfl/ChangeLog
libdwfl/dwfl_module_getdwarf.c
tests/ChangeLog
tests/run-addrname-test.sh

12 years agolibdwfl/
Jan Kratochvil [Wed, 17 Oct 2012 19:49:10 +0000 (21:49 +0200)] 
libdwfl/
2012-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>

* dwfl_module_getdwarf.c (mod_verify_build_id): New function with code
from ...
(__libdwfl_getelf): ... here.  Call it.

tests/
2012-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>

* run-addrname-test.sh: New test for DSO with build-id bias.
* testfile69.core.bz2: New file.
* testfile69.so.bz2: New file.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
12 years agolibdwfl/
Jan Kratochvil [Wed, 17 Oct 2012 20:04:24 +0000 (22:04 +0200)] 
libdwfl/
2012-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>

* libdwfl.h (dwfl_module_getelf): Add __nonnull_attribute__.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
12 years agoMerge branch 'jankratochvil/buildid-bias' into pending
Jan Kratochvil [Wed, 17 Oct 2012 19:54:36 +0000 (21:54 +0200)] 
Merge branch 'jankratochvil/buildid-bias' into pending

Conflicts:
libdwfl/ChangeLog
tests/ChangeLog
tests/run-addrname-test.sh

12 years agolibdwfl/
Jan Kratochvil [Wed, 17 Oct 2012 19:49:10 +0000 (21:49 +0200)] 
libdwfl/
2012-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>

* dwfl_module_getdwarf.c (__libdwfl_getelf): Do not return yet on
matching build-id.  Check ELFERR before closing this MOD file.

tests/
2012-10-17  Jan Kratochvil  <jan.kratochvil@redhat.com>

* run-addrname-test.sh: New test for DSO with build-id bias.
* testfile69.core.bz2: New file.
* testfile69.so.bz2: New file.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
12 years agoMerge branch 'jankratochvil/s390-core' into pending
Jan Kratochvil [Mon, 15 Oct 2012 13:32:31 +0000 (15:32 +0200)] 
Merge branch 'jankratochvil/s390-core' into pending

12 years agoRevert "backends/"
Jan Kratochvil [Mon, 15 Oct 2012 13:32:25 +0000 (15:32 +0200)] 
Revert "backends/"

This reverts commit a1380e679928424bd6c1a5adfa65e55214418b5c.

12 years agobackends/
Jan Kratochvil [Wed, 10 Oct 2012 17:32:05 +0000 (19:32 +0200)] 
backends/
2012-10-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
    Roland McGrath <roland@hack.frob.com>

* Makefile.am (s390_SRCS): Add s390_corenote.c and s390x_corenote.c.
* linux-core-note.c (ALIGN_PR_REG): New definitions.
(struct EBLHOOK(prstatus)): Change field pr_reg to anonymous union with
ALIGN_PR_REG.
(EXTRA_ITEMS): New macro.
* s390_corenote.c: New file.
* s390_init.c (s390x_core_note): New declaration.
(s390_init): Install s390x_core_note and s390_core_note.
* s390x_corenote.c: New file.

src/
2012-10-14  Jan Kratochvil  <jan.kratochvil@redhat.com>

* readelf.c (handle_core_items): Limit special repeated items handling
to single-item formats '\n', 'b' and 'B', assert OFFSET 0 there.

tests/
2012-10-14  Jan Kratochvil  <jan.kratochvil@redhat.com>

* run-readelf-mixed-corenote.sh: New testcase for readelf -n of s390
and s390x core notes.
* testfile67.bz2: New file.
* testfile68.bz2: New file.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
12 years agoMerge branch 'master' into pending
Jan Kratochvil [Fri, 12 Oct 2012 19:00:46 +0000 (21:00 +0200)] 
Merge branch 'master' into pending

Conflicts:
backends/ChangeLog
src/ChangeLog
src/readelf.c

12 years agolibebl/
Jan Kratochvil [Fri, 12 Oct 2012 18:43:21 +0000 (20:43 +0200)] 
libebl/
2012-10-12  Jan Kratochvil  <jan.kratochvil@redhat.com>

* ebl-hooks.h (abi_cfi): Extend its comment for return value.
* eblopenbackend.c (default_abi_cfi): Return -1.
* libebl.h (ebl_abi_cfi): Extend its comment for return value.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
12 years agosrc/
Jan Kratochvil [Wed, 10 Oct 2012 20:27:58 +0000 (22:27 +0200)] 
src/
2012-10-12  Jan Kratochvil  <jan.kratochvil@redhat.com>

* readelf.c (ITEM_WRAP_COLUMN, REGISTER_WRAP_COLUMN): Merge to ...
(WRAP_COLUMN): ... here.
(print_core_item): Remove parameter format_max.  Update function
comment.  Replace FORMAT_MAX by the real output width.
(handle_core_item): Remove the FORMAT_MAX values in TYPES, DO_TYPE,
calls of print_core_item, remove variable maxfmt, change
ITEM_WRAP_COLUMN to WRAP_COLUMN.
(handle_core_register): Remove the FORMAT_MAX values in TYPES, BITS,
calls of print_core_item, change REGISTER_WRAP_COLUMN to WRAP_COLUMN.

backends/
2012-10-12  Jan Kratochvil  <jan.kratochvil@redhat.com>

* linux-core-note.c (prstatus_items): Rename groups of sigpend and
sighold to signal2 and signal3.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
12 years agoMerge branch 'jankratochvil/abicfi-retval' into pending
Jan Kratochvil [Fri, 12 Oct 2012 18:46:26 +0000 (20:46 +0200)] 
Merge branch 'jankratochvil/abicfi-retval' into pending

12 years agolibebl/
Jan Kratochvil [Fri, 12 Oct 2012 18:43:21 +0000 (20:43 +0200)] 
libebl/
2012-10-12  Jan Kratochvil  <jan.kratochvil@redhat.com>

* ebl-hooks.h (abi_cfi): Extend its comment for return value.
* eblopenbackend.c (default_abi_cfi): Return -1.
* libebl.h (ebl_abi_cfi): Extend its comment for return value.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
12 years agoMerge branch 'jankratochvil/s390-core' into pending
Jan Kratochvil [Fri, 12 Oct 2012 17:50:38 +0000 (19:50 +0200)] 
Merge branch 'jankratochvil/s390-core' into pending

12 years agoMerge branch 'jankratochvil/readelf-width' into pending
Jan Kratochvil [Fri, 12 Oct 2012 17:50:33 +0000 (19:50 +0200)] 
Merge branch 'jankratochvil/readelf-width' into pending

12 years agoMerge branch 'jankratochvil/ppc64-opd' into pending
Jan Kratochvil [Fri, 12 Oct 2012 17:50:25 +0000 (19:50 +0200)] 
Merge branch 'jankratochvil/ppc64-opd' into pending

12 years agobackends/
Jan Kratochvil [Wed, 10 Oct 2012 17:32:05 +0000 (19:32 +0200)] 
backends/
2012-10-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
    Roland McGrath <roland@hack.frob.com>

* Makefile.am (s390_SRCS): Add s390_corenote.c and s390x_corenote.c.
* linux-core-note.c (PR_REG_TYPE, ALIGN_PR_REG_TYPE, PR_FPVALID_TYPE)
(ALIGN_PR_FPVALID_TYPE): New definitions.
(struct EBLHOOK(prstatus)): Change field pr_reg to type PR_REG_TYPE and
field pr_fpvalid to type PR_FPVALID_TYPE.
(EXTRA_ITEMS): New macro.
* s390_corenote.c: New file.
* s390_init.c (s390x_core_note): New declaration.
(s390_init): Install s390x_core_note and s390_core_note.
* s390x_corenote.c: New file.

src/
2012-10-12  Jan Kratochvil  <jan.kratochvil@redhat.com>

* readelf.c (handle_core_items): New variable wrap, choose
REGISTER_WRAP_COLUMN for "register" group.  Use it instead of
ITEM_WRAP_COLUMN.  Limit special repeated items handling to
OFFSET 0 and formats '\n', 'b' and 'B'.  Initialize COLNO to MAX of
also REGISTER_WRAP_COLUMN.

tests/
2012-10-12  Jan Kratochvil  <jan.kratochvil@redhat.com>

* run-readelf-mixed-corenote.sh: New testcase for readelf -n of s390
and s390x core notes.
* testfile67.bz2: New file.
* testfile68.bz2: New file.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
12 years agolibdwfl/
Jan Kratochvil [Wed, 10 Oct 2012 18:42:30 +0000 (20:42 +0200)] 
libdwfl/
linux-proc-maps.c: Include system.h.
(PROCEXEFMT, get_pid_class): New.
(grovel_auxv): Detect 32-bit vs. 64-bit auxv, possibly call get_pid_class.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
12 years agosrc/
Jan Kratochvil [Wed, 10 Oct 2012 20:27:58 +0000 (22:27 +0200)] 
src/
2012-10-12  Jan Kratochvil  <jan.kratochvil@redhat.com>

* readelf.c (ITEM_WRAP_COLUMN, REGISTER_WRAP_COLUMN): Merge to ...
(WRAP_COLUMN): ... here.
(print_core_item): Remove parameter format_max.  Update function
comment.  Replace FORMAT_MAX by the real output width.
(handle_core_item): Remove the FORMAT_MAX values in TYPES, DO_TYPE,
calls of print_core_item, remove variable maxfmt, change
ITEM_WRAP_COLUMN to WRAP_COLUMN.
(handle_core_register): Remove the FORMAT_MAX values in TYPES, BITS,
calls of print_core_item, change REGISTER_WRAP_COLUMN to WRAP_COLUMN.

backends/
2012-10-12  Jan Kratochvil  <jan.kratochvil@redhat.com>

* linux-core-note.c (prstatus_items): Rename groups of sigpend and
sighold to signal2 and signal3.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
12 years agoMissing ChangeLog entry from last commit.
Roland McGrath [Thu, 11 Oct 2012 21:53:18 +0000 (14:53 -0700)] 
Missing ChangeLog entry from last commit.

Signed-off-by: Roland McGrath <roland@hack.frob.com>
12 years agosrc/
Jan Kratochvil [Thu, 11 Oct 2012 19:47:26 +0000 (21:47 +0200)] 
src/
2012-10-11  Jan Kratochvil  <jan.kratochvil@redhat.com>

* readelf.c (handle_core_item) <b>: Make run an outer block variable.
Increase run only if LASTBIT != 0.  Print last element only if RUN > 0.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
12 years agoMerge branch 'master' into jankratochvil/ppc64-opd
Jan Kratochvil [Wed, 10 Oct 2012 16:39:24 +0000 (18:39 +0200)] 
Merge branch 'master' into jankratochvil/ppc64-opd

12 years agoRobustify makefile redirection use.
Roland McGrath [Wed, 10 Oct 2012 16:31:42 +0000 (09:31 -0700)] 
Robustify makefile redirection use.

12 years agoMerge branch 'jankratochvil/vdso-bias'
Roland McGrath [Wed, 10 Oct 2012 16:31:00 +0000 (09:31 -0700)] 
Merge branch 'jankratochvil/vdso-bias'

12 years agoHandle GNU extension opcodes in dwarf_getlocation
Petr Machata [Tue, 9 Oct 2012 00:11:29 +0000 (02:11 +0200)] 
Handle GNU extension opcodes in dwarf_getlocation

12 years agoHandle partial read or write.
Adam Markey [Tue, 9 Oct 2012 09:05:53 +0000 (11:05 +0200)] 
Handle partial read or write.

Ran into a situation where pread was returning less data than requested for
remote files on a networked filesystem. This patch modifies the IO wrappers
to request the remaining data as long as no real errors occured.

Signed-off-by: Adam Markey <adam@etinternational.com>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
12 years agobackends/
Jan Kratochvil [Wed, 10 Oct 2012 07:48:10 +0000 (09:48 +0200)] 
backends/
2012-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>

        * Makefile.am (INCLUDES): Add libdwfl.
        (ppc64_SRCS): Add ppc64_get_func_pc.c.
        * ppc64_get_func_pc.c: New file.
        * ppc64_init.c (ppc64_init): Install get_func_pc and destr.

libdwfl/
2012-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>

        * dwfl_module_addrsym.c (dwfl_module_addrsym) (get_section): New
        function from ...
        (dwfl_module_addrsym) (same_section): ... here.  Call it.
        (dwfl_module_addrsym) (found_sym): New function from ...
        (dwfl_module_addrsym) (search_table): ... here.  Call it.  Try second
        time with ebl_get_func_pc.

libebl/
2012-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>

        * Makefile.am (gen_SOURCES): Add eblgetfuncpc.c.
        * ebl-hooks.h (get_func_pc): New entry.
        * eblgetfuncpc.c: New file.
        * libebl.h (struct Dwfl_Module): New declaration.
        (ebl_get_func_pc): New declaration.
        * libeblP.h (struct ebl): New field backend.

tests/
2012-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>

        * run-addrname-test.sh: New testcase for ppc64 function descriptors.
        * testfile66.bz2: New file.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
12 years agolibdwfl/
Jan Kratochvil [Wed, 10 Oct 2012 06:08:44 +0000 (08:08 +0200)] 
libdwfl/
dwfl_segment_report_module.c (dwfl_segment_report_module): Initialize
mod->MAIN_BIAS.

tests/
run-addrname-test.sh: New test for core vDSO bias.
testfile65.bz2: New file.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
12 years agolibdwfl/
Jan Kratochvil [Wed, 10 Oct 2012 06:04:01 +0000 (08:04 +0200)] 
libdwfl/
* dwfl_module_addrsym.c (dwfl_module_addrsym): New function binding_value.  Use
it for both zero and non-zero size symbols comparisons.

tests/
* run-addrname-test.sh: New test for symbol preferences.
* testfile64.bz2: New file.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
12 years agolib/
Jan Kratochvil [Mon, 8 Oct 2012 21:51:31 +0000 (23:51 +0200)] 
lib/
system.h (eu_static_assert): New macro.

libdw/
cfi.c: New include system.h.
(execute_cfi) (enough_registers): Clear new memory after realloc.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
12 years agolibdw/
Jan Kratochvil [Mon, 8 Oct 2012 21:34:35 +0000 (23:34 +0200)] 
libdw/
fde.c (__libdw_find_fde): Change <fde != NULL> to likely.  Return
DWARF_E_NO_MATCH if .eh_frame_hdr points to FDE which is too short for searched
PC.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
12 years agodwarf_getlocation.c (__libdw_intern_expression) <cfap>: Make new loclist
Jan Kratochvil [Mon, 8 Oct 2012 21:08:01 +0000 (23:08 +0200)] 
dwarf_getlocation.c (__libdw_intern_expression) <cfap>: Make new loclist
element DW_OP_call_frame_cfa before decoding the opcodes.  Remove the later
DW_OP_call_frame_cfa push to RESULT.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
12 years agoCode cleanup.
Jan Kratochvil [Mon, 8 Oct 2012 21:04:54 +0000 (23:04 +0200)] 
Code cleanup.
fde.c (binary_search_fde): Remove always true <address >= start> conditional.
Move L initialization upwards.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
12 years agoAdd configure --enable-valgrind option to run all tests under valgrind.
Mark Wielaard [Mon, 1 Oct 2012 14:14:12 +0000 (16:14 +0200)] 
Add configure --enable-valgrind option to run all tests under valgrind.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
12 years agocu.c (cudie_offset): Don't use type_sig8, it might not be initialized.
Mark Wielaard [Mon, 1 Oct 2012 14:12:10 +0000 (16:12 +0200)] 
cu.c (cudie_offset): Don't use type_sig8, it might not be initialized.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
12 years agoderelocate.c (find_section): Check next section exists before accessing it.
Mark Wielaard [Mon, 1 Oct 2012 14:10:46 +0000 (16:10 +0200)] 
derelocate.c (find_section): Check next section exists before accessing it.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
12 years agoTest elfutils output of a mixed core note.
Petr Machata [Mon, 24 Sep 2012 14:46:52 +0000 (16:46 +0200)] 
Test elfutils output of a mixed core note.

This is a test for previous commit.  The core file was snipped so that only
headers and note contents are left.  NT_ARM_VFP is the note that exercises
the code.

Signed-off-by: Petr Machata <pmachata@redhat.com>
12 years agoIn mixed core notes, don't let handle_core_item repeat.
Petr Machata [Wed, 19 Sep 2012 14:52:07 +0000 (16:52 +0200)] 
In mixed core notes, don't let handle_core_item repeat.

If a core note contains both registers and items, descsz is 0 to express
that we don't wish to repeat the items.  If there is only one item in
such note, a special block of code hits that passes &size to
handle_core_item, which will decrease that size by the amount consumed by
the item.  But because size is 0, it underflows and wraps, and the loop
following this block, which handles the common case, overruns the core
note buffer.

Signed-off-by: Petr Machata <pmachata@redhat.com>
12 years agoAdd back end code for interpreting NT_ARM_VFP core note.
Petr Machata [Mon, 24 Sep 2012 23:37:20 +0000 (01:37 +0200)] 
Add back end code for interpreting NT_ARM_VFP core note.

Signed-off-by: Petr Machata <pmachata@redhat.com>
12 years agoTest elfutils output of VMCOREINFO note.
Petr Machata [Mon, 24 Sep 2012 14:16:27 +0000 (16:16 +0200)] 
Test elfutils output of VMCOREINFO note.

The test file is partial kdump image, with only headers and notes left in.

Signed-off-by: Petr Machata <pmachata@redhat.com>
12 years agoChange FPREGSET_SIZE in ARM backend to 116 to match sizeof struct user_fp
Petr Machata [Mon, 17 Sep 2012 19:00:21 +0000 (21:00 +0200)] 
Change FPREGSET_SIZE in ARM backend to 116 to match sizeof struct user_fp

Signed-off-by: Petr Machata <pmachata@redhat.com>
12 years agoAdd allregs test for ARM back end
Petr Machata [Tue, 18 Sep 2012 19:35:19 +0000 (21:35 +0200)] 
Add allregs test for ARM back end

Signed-off-by: Petr Machata <pmachata@redhat.com>
12 years agoHandle new core note types in EBL
Petr Machata [Thu, 30 Aug 2012 14:01:02 +0000 (16:01 +0200)] 
Handle new core note types in EBL

Signed-off-by: Petr Machata <pmachata@redhat.com>
12 years agoUpdate elf.h from glibc.
Petr Machata [Mon, 17 Sep 2012 15:22:02 +0000 (17:22 +0200)] 
Update elf.h from glibc.

Signed-off-by: Petr Machata <pmachata@redhat.com>
12 years agoUpdated Polish translation.
Piotr Drąg [Sun, 2 Sep 2012 17:13:29 +0000 (19:13 +0200)] 
Updated Polish translation.

Signed-off-by: Piotr Drąg <piotrdrag@gmail.com>
12 years agoPrepare 0.155 release. elfutils-0.155
Mark Wielaard [Mon, 27 Aug 2012 13:31:31 +0000 (15:31 +0200)] 
Prepare 0.155 release.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
12 years agoreadelf.c (print_debug_macro_section): Print offset as PRIx64.
Mark Wielaard [Mon, 27 Aug 2012 13:21:58 +0000 (15:21 +0200)] 
readelf.c (print_debug_macro_section): Print offset as PRIx64.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
12 years agoreadelf.c (register_info): Handle loc == NULL.
Mark Wielaard [Mon, 27 Aug 2012 12:30:05 +0000 (14:30 +0200)] 
readelf.c (register_info): Handle loc == NULL.

register_info is called by print_cfa_program with loc being NULL.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
12 years agotests: Add testfile60.bz2 to EXTRA_DIST.
Mark Wielaard [Fri, 24 Aug 2012 12:51:37 +0000 (14:51 +0200)] 
tests: Add testfile60.bz2 to EXTRA_DIST.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
12 years agoAdd support for Tilera TILE-Gx processor.
Jeff Kenton [Wed, 22 Aug 2012 13:00:03 +0000 (09:00 -0400)] 
Add support for Tilera TILE-Gx processor.

Signed-off-by: Jeff Kenton <jkenton@tilera.com>
12 years agoDon't include dwz support by default.
Mark Wielaard [Fri, 24 Aug 2012 11:54:52 +0000 (13:54 +0200)] 
Don't include dwz support by default.

By default the dwz multi file support is not included.  This means any
DW_FORM_GNU_ref_alt or DW_FORM_GNU_strp_alt encountered in libdw will
just produce an error message.  A new configure option --enable-dwz is
needed to include it for those we wish to test it.  The dwz test is also
disabled by default.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
12 years agoUse ELF in NEWS.
Mark Wielaard [Wed, 22 Aug 2012 07:57:36 +0000 (09:57 +0200)] 
Use ELF in NEWS.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
12 years agoAdd 0.155 NEWS entries for libelf, libdw and readelf.
Mark Wielaard [Tue, 21 Aug 2012 10:22:08 +0000 (12:22 +0200)] 
Add 0.155 NEWS entries for libelf, libdw and readelf.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
12 years agoUpdate Ukrainian translation.
Yuri Chornoivan [Mon, 20 Aug 2012 15:13:10 +0000 (18:13 +0300)] 
Update Ukrainian translation.

Signed-off-by: Yuri Chornoivan <yurchor@ukr.net>
12 years agoRewrite DWARF string functions using known-dwarf macros.
Mark Wielaard [Thu, 16 Aug 2012 22:35:03 +0000 (00:35 +0200)] 
Rewrite DWARF string functions using known-dwarf macros.

readelf and tests were using hard coded string tables to produce DWARF
string constants. Use the known-dwarf macros to redefine these and
reduce code. Technique comes from dwarf branch dwarfstrings.c.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
13 years agoUpdate elf.h from glibc.
Roland McGrath [Thu, 16 Aug 2012 17:39:52 +0000 (10:39 -0700)] 
Update elf.h from glibc.

Signed-off-by: Roland McGrath <roland@hack.frob.com>
13 years agoelf32_checksum.c: Removed unused ebl_debugscn_p define and confusing comment.
Mark Wielaard [Tue, 14 Aug 2012 14:48:50 +0000 (16:48 +0200)] 
elf32_checksum.c: Removed unused ebl_debugscn_p define and confusing comment.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
13 years agoUpdate main bugzilla URL
Jan Pokorný [Tue, 14 Aug 2012 12:42:22 +0000 (14:42 +0200)] 
Update main bugzilla URL

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
13 years agolibdw: Add support for DWZ multifile forms DW_FORM_GNU_ref_alt/strp_alt.
Mark Wielaard [Fri, 22 Jun 2012 10:02:45 +0000 (12:02 +0200)] 
libdw: Add support for DWZ multifile forms DW_FORM_GNU_ref_alt/strp_alt.

DWZ multifile forms http://www.dwarfstd.org/ShowIssue.php?issue=120604.1
DW_FORM_GNU_ref_alt and DW_FORM_GNU_strp_alt reference an alternative
debuginfo file.  dwarf_begin and dwarf_begin_elf will try to use this
automatically.  There are no user visible changes to the libdw interface.

dwarf_formref_die, dwarf_formstring and dwarf_formudata can now return
a Dwarf_Die which comes from a CU in the alternative Dwarf descriptor.

__libdw_read_offset was adjusted to take an alternative Dwarf descriptor
into account.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
13 years agoFix formatting string in readelf
Petr Machata [Wed, 1 Aug 2012 19:43:58 +0000 (21:43 +0200)] 
Fix formatting string in readelf

This caused failures of 32-bit builds.

Signed-off-by: Petr Machata <pmachata@redhat.com>
13 years agoTest case for handling archives with 64-bit symbol table
Petr Machata [Wed, 1 Aug 2012 19:41:36 +0000 (21:41 +0200)] 
Test case for handling archives with 64-bit symbol table

Signed-off-by: Petr Machata <pmachata@redhat.com>
13 years agoImplement support for archives with 64-bit symbol table
Petr Machata [Wed, 1 Aug 2012 19:37:52 +0000 (21:37 +0200)] 
Implement support for archives with 64-bit symbol table

Signed-off-by: Petr Machata <pmachata@redhat.com>
13 years agotests: Add run-nm-self.sh and run-readelf-self.sh tests.
Mark Wielaard [Wed, 1 Aug 2012 13:39:11 +0000 (15:39 +0200)] 
tests: Add run-nm-self.sh and run-readelf-self.sh tests.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
13 years agotests: Introduce testrun_on_self, use it in run-elflint-self.sh
Mark Wielaard [Wed, 1 Aug 2012 13:31:12 +0000 (15:31 +0200)] 
tests: Introduce testrun_on_self, use it in run-elflint-self.sh

Signed-off-by: Mark Wielaard <mjw@redhat.com>
13 years agoReorder formatting string arguments so that there are no gaps in references
Petr Machata [Mon, 30 Jul 2012 17:48:28 +0000 (19:48 +0200)] 
Reorder formatting string arguments so that there are no gaps in references

It is required that formatting string that uses $-style references lists
all arguments.

Signed-off-by: Petr Machata <pmachata@redhat.com>
13 years agoreadelf: Use DW_LANG_ObjC and known[op].
Mark Wielaard [Sun, 29 Jul 2012 12:05:20 +0000 (14:05 +0200)] 
readelf: Use DW_LANG_ObjC and known[op].

Not all patches from the dwarfstrings branch were applied, causing compile
failures.

13 years agoconfig: known-dwarf.awk Fix "Generated by" header.
Mark Wielaard [Thu, 19 Jul 2012 21:31:45 +0000 (23:31 +0200)] 
config: known-dwarf.awk Fix "Generated by" header.

Generated header had wrong file names for config/known-dwarf.awk
and libdw/dwarf.h contents.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
13 years agoAdd DW_OP_GNU_parameter_ref to dwarf.h and handle it in readelf.
Mark Wielaard [Thu, 19 Jul 2012 22:09:56 +0000 (00:09 +0200)] 
Add DW_OP_GNU_parameter_ref to dwarf.h and handle it in readelf.

DW_OP_GNU_parameter_ref takes as operand a 4 byte CU relative reference
to the abstract optimized away DW_TAG_formal_parameter.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
13 years agoCorrect spelling of DW_LANG_ObjC in dwarf.h.
Mark Wielaard [Tue, 24 Jul 2012 11:20:41 +0000 (13:20 +0200)] 
Correct spelling of DW_LANG_ObjC in dwarf.h.

Fix usage in dwarf_aggregate_size.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
13 years agolibdw: Add DWARF4 DW_ATE_UTF.
Mark Wielaard [Tue, 24 Jul 2012 18:00:14 +0000 (20:00 +0200)] 
libdw: Add DWARF4 DW_ATE_UTF.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
13 years agoelf_getshdr should work for elf->flags & ELF_F_MALLOCED.
Mark Wielaard [Wed, 18 Jul 2012 11:14:30 +0000 (13:14 +0200)] 
elf_getshdr should work for elf->flags & ELF_F_MALLOCED.

Reported-by: Nick Alcock <nix@esperi.org.uk>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
13 years agotest: run-elflint-self.sh ebl shared libraries are under backends now.
Mark Wielaard [Thu, 19 Jul 2012 20:59:18 +0000 (22:59 +0200)] 
test: run-elflint-self.sh ebl shared libraries are under backends now.

Signed-off-by: Mark Wielaard <mjw@redhat.com>