diff options
author | Mark Wielaard <mark@klomp.org> | 2019-04-30 13:00:17 +0200 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2019-05-04 21:31:08 +0200 |
commit | 1d8f5d30a92285fd4e7895a1d00587ac487412e3 (patch) | |
tree | 4daa1df6e8f87cf7286e3c276e7729fda2fee9a0 /tests/ChangeLog | |
parent | 62bed2018232379ac91020137df37afe5e6a5579 (diff) | |
download | elfutils-1d8f5d30a92285fd4e7895a1d00587ac487412e3.tar.gz |
libelf: If xlate can only convert the ELF note header, just do that.
When we started parsing new style ELF_T_NHDR8 notes we added extra
checks on alignment and padding. When those failed we would stop
converting and just return the rest of the ELF Note unconverted.
In the case were we just had enough data for just the ELF Note header
and the destionation and source weren't the same we would then
accidentially throw away the Note header conversion we just did.
Fix that by indicating we did correctly convert just the header.
Adds testcase that compares parsing ELF notes with gelf_getnote
and parsing the raw data by hand using elf32_xlatetom using just
the Note header and ignoring the (raw) note data.
Signed-off-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'tests/ChangeLog')
-rw-r--r-- | tests/ChangeLog | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog index d6dafa46..49392f1f 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,5 +1,14 @@ 2019-04-30 Mark Wielaard <mark@klomp.org> + * xlate_notes.c: New file. + * run-xlate-note.sh: New test. + * Makefile.am (check_PROGRAMS): Add xlate_notes. + (TESTS): Add run-xlate-note.sh. + (EXTRA_DIST): Likewise. + (xlate_notes_LDADD): New variable. + +2019-04-30 Mark Wielaard <mark@klomp.org> + * backtrace-dwarf.c (frame_callback): Explicitly check symname is NULL. |