diff options
author | Alan Modra <amodra@gmail.com> | 2022-08-12 17:48:00 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-08-13 14:11:27 +0930 |
commit | cc44342012efbc20421fa91abd1f0c3000a2241a (patch) | |
tree | bd2481e9e2386e5b439ff2157d7aa36967d81a28 /binutils/testsuite/binutils-all/dw5-op.W | |
parent | 31e5a3a3807e7d5b43845d0d17ddfd1a8692752c (diff) | |
download | binutils-gdb-cc44342012efbc20421fa91abd1f0c3000a2241a.tar.gz |
readelf: print 0x0 as 0, and remove trailing spaces
This changes readelf output a little, removing the 0x prefix on hex
output when the value is 0, except in cases where a fixed field
width is shown. %#010x is not a good replacement for 0x%08x.
Diffstat (limited to 'binutils/testsuite/binutils-all/dw5-op.W')
-rw-r--r-- | binutils/testsuite/binutils-all/dw5-op.W | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/binutils/testsuite/binutils-all/dw5-op.W b/binutils/testsuite/binutils-all/dw5-op.W index 544a0712275..f1406c1f9d2 100644 --- a/binutils/testsuite/binutils-all/dw5-op.W +++ b/binutils/testsuite/binutils-all/dw5-op.W @@ -1,23 +1,23 @@ Contents of the .debug_info section: - Compilation Unit @ offset 0x0: + Compilation Unit @ offset (0x)?0: Length: 0x4e \(32-bit\) Version: 5 Unit Type: DW_UT_compile \(1\) - Abbrev Offset: 0x0 + Abbrev Offset: (0x)?0 Pointer Size: 8 <0><c>: Abbrev Number: 3 \(DW_TAG_compile_unit\) <d> DW_AT_producer : \(indirect string, offset: 0xa\): GNU C11 7.0.1 20170218 \(experimental\) -mtune=generic -march=x86-64 -gdwarf-5 -O2 <11> DW_AT_language : 29 \(C11\) <12> DW_AT_name : \(indirect line string, offset: 0x2\): main.c - <16> DW_AT_comp_dir : \(indirect line string, offset: 0x0\): - <1a> DW_AT_ranges : 0x0 - <1e> DW_AT_low_pc : 0x0 - <26> DW_AT_stmt_list : 0x0 + <16> DW_AT_comp_dir : \(indirect line string, offset: (0x)?0\): + <1a> DW_AT_ranges : (0x)?0 + <1e> DW_AT_low_pc : (0x)?0 + <26> DW_AT_stmt_list : (0x)?0 <1><2a>: Abbrev Number: 1 \(DW_TAG_base_type\) <2b> DW_AT_byte_size : 4 <2c> DW_AT_encoding : 5 \(signed\) - <2d> DW_AT_name : \(indirect string, offset: 0x0\): main + <2d> DW_AT_name : \(indirect string, offset: (0x)?0\): main <1><31>: Abbrev Number: 2 \(DW_TAG_variable\) <32> DW_AT_name : \(indirect string, offset: 0x5\): xvar <36> DW_AT_decl_file : 1 @@ -31,5 +31,5 @@ Contents of the .debug_info section: <4a> DW_AT_decl_line : 3 <4b> DW_AT_type : <0x2a> <4f> DW_AT_external : 1 - <4f> DW_AT_location : \(DW_OP_addrx <0x0>\) + <4f> DW_AT_location : \(DW_OP_addrx <(0x)?0>\) |