1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:24:57 +00:00

readelf: Tweak section headers output column padding

This commit is contained in:
Brendan Coles 2021-03-14 15:14:53 +00:00 committed by Andreas Kling
parent 1eccd78e3a
commit 81cbb2676e

View file

@ -397,10 +397,10 @@ int main(int argc, char** argv)
printf("There are no sections in this file.\n");
} else {
printf("Section Headers:\n");
printf(" Name Type Address Offset Size Flags\n");
printf(" Name Type Address Offset Size Flags\n");
interpreter_image.for_each_section([](const ELF::Image::Section& section) {
printf(" %-15s ", StringView(section.name()).to_string().characters());
printf(" %-19s ", StringView(section.name()).to_string().characters());
printf("%-15s ", object_section_header_type_to_string(section.type()));
printf("%08x ", section.address());
printf("%08x ", section.offset());