From 06b6e20ba921a062b71c86df8859eaaea4b75cb2 Mon Sep 17 00:00:00 2001 From: Fabian Imhof Date: Thu, 15 May 2025 12:20:19 +0000 Subject: add cpp standard library to .stl_text section (which is user accessible) --- arch/x86_64/scripts/kernel.ld | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch') diff --git a/arch/x86_64/scripts/kernel.ld b/arch/x86_64/scripts/kernel.ld index 1856123..1925872 100644 --- a/arch/x86_64/scripts/kernel.ld +++ b/arch/x86_64/scripts/kernel.ld @@ -88,6 +88,7 @@ SECTIONS .text ALIGN(4K) : AT(ADDR (.text)) { *(.text*) + *(EXCLUDE_FILE (*libstdc++.a) .text .text.*) } .user_text ALIGN(4K) : AT(ADDR (.user_text)) @@ -98,6 +99,7 @@ SECTIONS .stl_text ALIGN(4K) : AT(ADDR (.stl_text)) { *(.stl_text) + *libstdc++.a:*(.text .text.*) } .rodata ALIGN(4K) : AT (ADDR (.rodata)) -- cgit v1.2.3