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') 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') 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 From 9438d08cc7a7f814d8d1b0cb13f4db176fc53aeb Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Wed, 9 Sep 2026 17:35:02 +0200 Subject: kstd/fmt: remove superfluous specifiers member --- libs/kstd/kstd/bits/format/formatter/char.hpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'libs/kstd') diff --git a/libs/kstd/kstd/bits/format/formatter/char.hpp b/libs/kstd/kstd/bits/format/formatter/char.hpp index 92489a1e..f7e48b49 100644 --- a/libs/kstd/kstd/bits/format/formatter/char.hpp +++ b/libs/kstd/kstd/bits/format/formatter/char.hpp @@ -16,8 +16,6 @@ namespace kstd template<> struct formatter : formatter { - bits::format::specifiers specifiers{}; - constexpr auto parse(format_parse_context & context) -> format_parse_context::iterator { specifiers = bits::format::parse_format_specifiers(context); -- cgit v1.2.3