mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 00:29:15 +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
Notes:
sideshowbarker
2024-07-19 03:41:48 +09:00
Author: https://github.com/BenWiederhake
Commit: 9e1ed4bb05
Pull-request: https://github.com/SerenityOS/serenity/pull/3096
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/stelar7
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