]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
libdwfl/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Wed, 10 Oct 2012 06:08:44 +0000 (08:08 +0200)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Wed, 10 Oct 2012 06:08:44 +0000 (08:08 +0200)
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>
libdwfl/ChangeLog
libdwfl/dwfl_segment_report_module.c
tests/ChangeLog
tests/run-addrname-test.sh
tests/testfile65.bz2 [new file with mode: 0644]

index 4a5f4eb1df4297583701f4fbf6e222e3fd79480a..189d3b717227ba3af821c46866c5fb9d6cf45205 100644 (file)
@@ -1,3 +1,8 @@
+2012-10-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * dwfl_segment_report_module.c (dwfl_segment_report_module):
+       Initialize mod->MAIN_BIAS.
+
 2012-10-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * dwfl_module_addrsym.c (dwfl_module_addrsym): New function
index afe9da1b929713b7faf2c2992593ff8b46fb9b55..7cf74994eab5d2604caeec22ebcb3b630b23744f 100644 (file)
@@ -650,6 +650,7 @@ dwfl_segment_report_module (Dwfl *dwfl, int ndx, const char *name,
       mod->main.elf = elf;
       mod->main.vaddr = module_start - bias;
       mod->main.address_sync = module_address_sync;
+      mod->main_bias = bias;
     }
 
   return finish ();
index ac1a1f8780cb05250f5d00b257d99cb92422eda4..2495fb58ce9af4421319dec8e1871a5705b0a6b5 100644 (file)
@@ -1,3 +1,8 @@
+2012-10-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * run-addrname-test.sh: New test for core vDSO bias.
+       * testfile65.bz2: New file.
+
 2012-10-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * run-addrname-test.sh: New test for symbol preferences.
index 034cf6f08f11548e79512b920a14bda293e1368f..4feb193658a1f071827a1451e39bc2a604ba658d 100755 (executable)
@@ -292,4 +292,10 @@ l0local2
 ??:0
 EOF
 
+testfiles testfile65
+testrun_compare ../src/addr2line -S --core=testfile65 0x7fff94bffa30 <<\EOF
+__vdso_time
+??:0
+EOF
+
 exit 0
diff --git a/tests/testfile65.bz2 b/tests/testfile65.bz2
new file mode 100644 (file)
index 0000000..5e925f8
Binary files /dev/null and b/tests/testfile65.bz2 differ