diff options
author | Josh Stone <jistone@redhat.com> | 2014-03-11 18:13:55 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2014-03-11 18:13:55 -0700 |
commit | 51fff30ac9d9eb245e7df8eb5c07658d04d6ad45 (patch) | |
tree | bdcebb56dc2e2d855f417c8fd5bd5deff1380551 /tests/testfilebaxmin.bz2 | |
parent | 65cefbd0793c0f9e90a326d7bebf0a47c93294ad (diff) | |
download | elfutils-51fff30ac9d9eb245e7df8eb5c07658d04d6ad45.tar.gz |
libdwfl: test dwflsyms on ET_EXEC with minisymtab
This adds testfilebaxmin, an ET_EXEC binary with .gnu_debugdata that
doesn't match the load address of the main file. A previous bug made
this trigger a kernel heuristic that forces the module to act like
ET_DYN, which makes things like dwfl_module_relocate_address report
relative addresses rather than proper absolute addresses.
For example, before the fix dwflsyms would print:
deregister_tm_clones (0) 0x400430, rel: 0x430 (.text)
Now it properly prints:
deregister_tm_clones (0) 0x400430, rel: 0x400430 (.text)
These new test additions confirm that it's fixed.
Signed-off-by: Josh Stone <jistone@redhat.com>
Diffstat (limited to 'tests/testfilebaxmin.bz2')
-rwxr-xr-x | tests/testfilebaxmin.bz2 | bin | 0 -> 2987 bytes |
1 files changed, 0 insertions, 0 deletions
diff --git a/tests/testfilebaxmin.bz2 b/tests/testfilebaxmin.bz2 Binary files differnew file mode 100755 index 00000000..c450cc82 --- /dev/null +++ b/tests/testfilebaxmin.bz2 |