1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:17:45 +00:00

LibELF: Ignore DT_SYMBOLIC entries

The shared library libicudata.so has a DT_SYMBOLIC entry:

Dynamic Section:
  NEEDED               libgcc_s.so
  SONAME               libicudata.so.69
  SYMBOLIC             0x00000000
  HASH                 0x00000094
  STRTAB               0x000000c8
  SYMTAB               0x000000a8
  STRSZ                0x0000002a
  SYMENT               0x00000010

According to the ELF spec DT_SYMBOLIC has no special meaning
for the dynamic loader.
This commit is contained in:
Gunnar Beutner 2021-04-19 19:38:24 +02:00 committed by Andreas Kling
parent 6c729993a8
commit 38619a9f24

View file

@ -183,6 +183,8 @@ void DynamicObject::parse()
case DT_NEEDED:
// We handle these in for_each_needed_library
break;
case DT_SYMBOLIC:
break;
default:
dbgln("DynamicObject: DYNAMIC tag handling not implemented for DT_{}", name_for_dtag(entry.tag()));
VERIFY_NOT_REACHED(); // FIXME: Maybe just break out here and return false?