sm: update to excise unnecessary library code

This commit is contained in:
Michael Scire 2021-05-02 10:33:15 -07:00
parent 7d61cab01c
commit 32f487abfb
7 changed files with 47 additions and 6 deletions

View file

@ -15,6 +15,8 @@
*/
#include <stratosphere.hpp>
extern "C" void NORETURN __real_exit(int rc);
namespace ams {
WEAK_SYMBOL void *Malloc(size_t size) {
@ -37,6 +39,11 @@ namespace ams {
return std::free(ptr);
}
WEAK_SYMBOL void NORETURN Exit(int rc) {
__real_exit(rc);
__builtin_unreachable();
}
}
extern "C" {
@ -46,4 +53,6 @@ extern "C" {
WRAP_ABORT_FUNC(__cxa_pure_virtual)
#undef WRAP_ABORT_FUNC
void NORETURN __wrap_exit(int rc) { ::ams::Exit(rc); __builtin_unreachable(); }
}