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
commit 9e1ed4bb05
Notes: sideshowbarker 2024-07-19 03:41:48 +09:00

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);