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

LibC: Link statically with libstdc++

This allows us to have the implementation of __cxa_demangle in libc.so.
This commit is contained in:
Itamar 2020-11-13 14:47:00 +02:00 committed by Andreas Kling
parent 706a8c05fd
commit dfdd977a82
3 changed files with 2 additions and 10 deletions

View file

@ -420,11 +420,6 @@ Elf32_Addr DynamicObject::patch_plt_entry(u32 relocation_offset)
ASSERT(relocation.type() == R_386_JMP_SLOT);
auto sym = relocation.symbol();
if (StringView { sym.name() } == "__cxa_demangle") {
dbgln("__cxa_demangle is currently not supported for shared objects");
// FIXME: Where is it defined?
ASSERT_NOT_REACHED();
}
u8* relocation_address = relocation.address().as_ptr();
auto res = lookup_symbol(sym);