From 0e0985f15c1f7149c9753843e17f51ac6b52c6f5 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 22 Jul 2021 01:15:10 +0200 Subject: [PATCH] Utilities: Make the columns for readelf fit all reloc types on x86_64 --- Userland/Utilities/readelf.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Userland/Utilities/readelf.cpp b/Userland/Utilities/readelf.cpp index cb64e4ea87..653fe7ee95 100644 --- a/Userland/Utilities/readelf.cpp +++ b/Userland/Utilities/readelf.cpp @@ -643,10 +643,10 @@ int main(int argc, char** argv) outln("Relocation section '{}' at offset {:#08x} contains zero entries:", object->relocation_section().name(), object->relocation_section().offset()); } else { outln("Relocation section '{}' at offset {:#08x} contains {} entries:", object->relocation_section().name(), object->relocation_section().offset(), object->relocation_section().entry_count()); - outln(" Offset{} Type Sym Value{} Sym Name", addr_padding, addr_padding); + outln(" Offset{} Type Sym Value{} Sym Name", addr_padding, addr_padding); object->relocation_section().for_each_relocation([](const ELF::DynamicObject::Relocation& reloc) { out(" {:p} ", reloc.offset()); - out(" {:17} ", object_relocation_type_to_string(reloc.type())); + out(" {:18} ", object_relocation_type_to_string(reloc.type())); out(" {:p} ", reloc.symbol().value()); out(" {}", reloc.symbol().name()); outln(); @@ -658,10 +658,10 @@ int main(int argc, char** argv) outln("Relocation section '{}' at offset {:#08x} contains zero entries:", object->plt_relocation_section().name(), object->plt_relocation_section().offset()); } else { outln("Relocation section '{}' at offset {:#08x} contains {} entries:", object->plt_relocation_section().name(), object->plt_relocation_section().offset(), object->plt_relocation_section().entry_count()); - outln(" Offset{} Type Sym Value{} Sym Name", addr_padding, addr_padding); + outln(" Offset{} Type Sym Value{} Sym Name", addr_padding, addr_padding); object->plt_relocation_section().for_each_relocation([](const ELF::DynamicObject::Relocation& reloc) { out(" {:p} ", reloc.offset()); - out(" {:17} ", object_relocation_type_to_string(reloc.type())); + out(" {:18} ", object_relocation_type_to_string(reloc.type())); out(" {:p} ", reloc.symbol().value()); out(" {}", reloc.symbol().name()); outln();