aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/scripts/kernel.ld
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/scripts/kernel.ld')
-rw-r--r--arch/x86_64/scripts/kernel.ld2
1 files changed, 2 insertions, 0 deletions
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))