1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:48:11 +00:00

LibELF: Tell compiler about invisible calls

This makes LibELF build cleanly with -Wmissing-declarations.
This commit is contained in:
Ben Wiederhake 2020-08-11 23:53:54 +02:00 committed by Andreas Kling
parent 936d5dcc01
commit 9e1ed4bb05

View file

@ -330,7 +330,9 @@ void DynamicLoader::setup_plt_trampoline()
#endif
}
// Called from our ASM routine _plt_trampoline
// Called from our ASM routine _plt_trampoline.
// Tell the compiler that it might be called from other places:
extern "C" Elf32_Addr _fixup_plt_entry(DynamicLoader* object, u32 relocation_offset);
extern "C" Elf32_Addr _fixup_plt_entry(DynamicLoader* object, u32 relocation_offset)
{
return object->patch_plt_entry(relocation_offset);