mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:07:36 +00:00
Kernel: Build UBSanitizer.cpp in aarch64 builds
All these symbols will be needed once we build MiniStdLib.cpp.
This commit is contained in:
parent
d0b0c45690
commit
208aa05cf3
2 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
set(SOURCES
|
set(SOURCES
|
||||||
|
UBSanitizer.cpp
|
||||||
)
|
)
|
||||||
if ("${SERENITY_ARCH}" STREQUAL "aarch64")
|
if ("${SERENITY_ARCH}" STREQUAL "aarch64")
|
||||||
set(SOURCES
|
set(SOURCES
|
||||||
|
@ -12,7 +13,6 @@ else()
|
||||||
Arch/x86/boot.S
|
Arch/x86/boot.S
|
||||||
Arch/x86/multiboot.S
|
Arch/x86/multiboot.S
|
||||||
# FIXME: Eventually, some of these should build on aarch64 too.
|
# FIXME: Eventually, some of these should build on aarch64 too.
|
||||||
UBSanitizer.cpp
|
|
||||||
init.cpp
|
init.cpp
|
||||||
../MiniStdLib.cpp
|
../MiniStdLib.cpp
|
||||||
../../Userland/Libraries/LibELF/Relocation.cpp
|
../../Userland/Libraries/LibELF/Relocation.cpp
|
||||||
|
|
|
@ -15,7 +15,11 @@ extern "C" {
|
||||||
|
|
||||||
static void print_location(const SourceLocation&)
|
static void print_location(const SourceLocation&)
|
||||||
{
|
{
|
||||||
|
#if ARCH(I386) || ARCH(X86_64)
|
||||||
asm volatile("cli; hlt");
|
asm volatile("cli; hlt");
|
||||||
|
#else
|
||||||
|
for (;;) { }
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void __ubsan_handle_load_invalid_value(const InvalidValueData&, ValueHandle) __attribute__((used));
|
void __ubsan_handle_load_invalid_value(const InvalidValueData&, ValueHandle) __attribute__((used));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue