summaryrefslogtreecommitdiff
path: root/tests/run-readelf-macro.sh
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2018-10-13 15:08:16 +0200
committerMark Wielaard <mark@klomp.org>2018-10-19 23:57:22 +0200
commit2f4a040fab520a97480f6ca6fa9fcef88bc55255 (patch)
tree951251cfa89f26d477f973dbc6af9db36b10594d /tests/run-readelf-macro.sh
parenteee4269e53154daaf0251371aacd91ec5db3eb30 (diff)
downloadelfutils-2f4a040fab520a97480f6ca6fa9fcef88bc55255.tar.gz
readelf: Handle multiple .debug_macro sections and decode header flag.
In object files there could be multiple .debug_macro sections. These are COMDAT sections used as imports. Note that the output for DW_MACRO_import isn't ideal since the offset is printed against the start of the .debug_macro section, but it doesn't show which one. We currently don't have that information and no interface yet for libdw users. Also decode the macro header flag byte for convenience. Signed-off-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'tests/run-readelf-macro.sh')
-rwxr-xr-xtests/run-readelf-macro.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/run-readelf-macro.sh b/tests/run-readelf-macro.sh
index 86932033..8b17f7da 100755
--- a/tests/run-readelf-macro.sh
+++ b/tests/run-readelf-macro.sh
@@ -65,7 +65,7 @@ DWARF section [32] '.debug_macro' at offset 0x2480:
Offset: 0x0
Version: 4
- Flag: 0x2
+ Flag: 0x2 (debug_line_offset)
Offset length: 4
.debug_line offset: 0x0
@@ -329,7 +329,7 @@ DWARF section [32] '.debug_macro' at offset 0x2480:
Offset: 0x5bc
Version: 4
- Flag: 0x2
+ Flag: 0x2 (debug_line_offset)
Offset length: 4
.debug_line offset: 0x47