mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Utilities: Make the columns for readelf fit all reloc types on x86_64
This commit is contained in:
parent
db1c5c4830
commit
0e0985f15c
Notes:
sideshowbarker
2024-07-18 08:36:38 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/0e0985f15c1 Pull-request: https://github.com/SerenityOS/serenity/pull/8925 Reviewed-by: https://github.com/awesomekling
1 changed files with 4 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue