summaryrefslogtreecommitdiff
path: root/Kernel/Prekernel/init.cpp
diff options
context:
space:
mode:
authorDaniel Bertalan <dani@danielbertalan.dev>2021-09-05 16:08:13 +0200
committerLinus Groh <mail@linusgroh.de>2021-10-17 17:09:58 +0100
commita8fefd89cd2af168a2d70e24c8e0a58924394777 (patch)
treedbabae5725be669435ff44f018b8f084c51b7c60 /Kernel/Prekernel/init.cpp
parent1faffc2192dab088e815f2a930993ce207e7b887 (diff)
downloadserenity-a8fefd89cd2af168a2d70e24c8e0a58924394777.zip
Everywhere: Make some symbols `__attribute__((used))` for LTO
With these changes, the userland builds correctly with Clang's ThinLTO enabled.
Diffstat (limited to 'Kernel/Prekernel/init.cpp')
-rw-r--r--Kernel/Prekernel/init.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Prekernel/init.cpp b/Kernel/Prekernel/init.cpp
index a4e9dc7fbc..4a186c3fa7 100644
--- a/Kernel/Prekernel/init.cpp
+++ b/Kernel/Prekernel/init.cpp
@@ -16,7 +16,7 @@
// Defined in the linker script
extern size_t __stack_chk_guard;
-size_t __stack_chk_guard;
+size_t __stack_chk_guard __attribute__((used));
extern "C" [[noreturn]] void __stack_chk_fail();
extern "C" u8 start_of_prekernel_image[];