1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:17:35 +00:00

LibELF: Correctly determine symbol amount for DT_GNU_HASH table

This commit is contained in:
Ollrogge 2024-01-07 20:10:39 +01:00 committed by Andrew Kaster
parent eada4f2ee8
commit 90ff6cca8a
2 changed files with 33 additions and 5 deletions

View file

@ -565,7 +565,6 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
});
if (object->symbol_count()) {
// FIXME: Add support for init/fini/start/main sections
outln(" Num: Value{} Size{} Type Bind Name", addr_padding, addr_padding);
object->for_each_symbol([](const ELF::DynamicObject::Symbol& sym) {
out(" {:>4}: ", sym.index());