DynamicLoader: Remove math functionality in favor of -lgcc

This links the dynamic linker against libgcc.a instead of having
our own copy of the math functions.

For now we need to specify -fbuilding-libgcc as a hack to work
around a bug with the -nodefaultlibs flag. Once everyone is on
the latest toolchain version this can be removed.
This commit is contained in:
Gunnar Beutner 2021-05-07 11:08:41 +02:00 committed by Andreas Kling
parent 224755e6ef
commit dd39bb7784
Notes: sideshowbarker 2024-07-18 18:36:26 +09:00
4 changed files with 9 additions and 198 deletions

View file

@ -116,4 +116,10 @@ void _start(int argc, char** argv, char** envp)
ELF::DynamicLinker::linker_main(move(main_program_name), main_program_fd, is_secure, argc, argv, envp);
VERIFY_NOT_REACHED();
}
void _fini();
void _fini()
{
}
}