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.
This commit is contained in:
Alan Modra
2022-08-12 17:48:00 +09:30
parent 31e5a3a380
commit cc44342012
77 changed files with 454 additions and 455 deletions

View File

@ -7,9 +7,9 @@
Contents of the \.z?debug_ranges section:
Offset Begin End
00000000 00000001 00000002
00000000 00000001 00000002 ?
00000000 <End of list>
00000010 00000000 00000002
00000010 00000000 00000002 ?
00000010 <End of list>
#pass