mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 17:57:35 +00:00
LibELF: Tell compiler about invisible calls
This makes LibELF build cleanly with -Wmissing-declarations.
This commit is contained in:
parent
936d5dcc01
commit
9e1ed4bb05
1 changed files with 3 additions and 1 deletions
|
@ -330,7 +330,9 @@ void DynamicLoader::setup_plt_trampoline()
|
||||||
#endif
|
#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)
|
extern "C" Elf32_Addr _fixup_plt_entry(DynamicLoader* object, u32 relocation_offset)
|
||||||
{
|
{
|
||||||
return object->patch_plt_entry(relocation_offset);
|
return object->patch_plt_entry(relocation_offset);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue