From 0e2ddf50d85c18d7f043c15dbb56cfdbf75984bc Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Fri, 4 Sep 2026 22:13:23 +0200 Subject: kstd/libc: add missing undefined function Even though we implement our own `memset` function, we did not define it as undefined. This lead to undefine symbols `-O2` builds, which prefer `memset` in situation in which `-Os` builds do not. --- libs/kstd/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'libs/kstd/CMakeLists.txt') diff --git a/libs/kstd/CMakeLists.txt b/libs/kstd/CMakeLists.txt index a5b76a62..573fc8f2 100644 --- a/libs/kstd/CMakeLists.txt +++ b/libs/kstd/CMakeLists.txt @@ -58,6 +58,7 @@ if(NOT BUILD_TESTING) "strlen" "memcmp" "memcpy" + "memset" ) list(TRANSFORM KSTD_LIBC_SYMBOLS PREPEND "-Wl,--undefined=") -- cgit v1.2.3 From 9f544dea5dbcdb92f614c6092a60e81d3398b8da Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sat, 5 Sep 2026 13:19:25 +0200 Subject: build: enable strong stack protector --- libs/kstd/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libs/kstd/CMakeLists.txt') diff --git a/libs/kstd/CMakeLists.txt b/libs/kstd/CMakeLists.txt index 573fc8f2..1902d0d9 100644 --- a/libs/kstd/CMakeLists.txt +++ b/libs/kstd/CMakeLists.txt @@ -59,6 +59,8 @@ if(NOT BUILD_TESTING) "memcmp" "memcpy" "memset" + "__stack_chk_fail" + "__stack_chk_guard" ) list(TRANSFORM KSTD_LIBC_SYMBOLS PREPEND "-Wl,--undefined=") -- cgit v1.2.3