aboutsummaryrefslogtreecommitdiff
path: root/linker.ld
diff options
context:
space:
mode:
Diffstat (limited to 'linker.ld')
-rw-r--r--linker.ld8
1 files changed, 4 insertions, 4 deletions
diff --git a/linker.ld b/linker.ld
index 387e7c7..60387bf 100644
--- a/linker.ld
+++ b/linker.ld
@@ -22,7 +22,7 @@ SECTIONS
.text :
{
KEEP(*(.text.boot))
- *(.text)
+ *(EXCLUDE_FILE (libkernel.o) .text)
}
. = ALIGN(4096); /* align to page size */
__text_end = .;
@@ -30,7 +30,7 @@ SECTIONS
__rodata_start = .;
.rodata :
{
- *(.rodata)
+ *(EXCLUDE_FILE (libkernel.o) .rodata)
}
. = ALIGN(4096); /* align to page size */
__rodata_end = .;
@@ -38,7 +38,7 @@ SECTIONS
__data_start = .;
.data :
{
- *(.data)
+ *(EXCLUDE_FILE (libkernel.o) .data)
}
. = ALIGN(4096); /* align to page size */
__data_end = .;
@@ -47,7 +47,7 @@ SECTIONS
.bss :
{
bss = .;
- *(.bss)
+ *(EXCLUDE_FILE (libkernel.o) .bss)
}
. = ALIGN(4096); /* align to page size */
__bss_end = .;