aboutsummaryrefslogtreecommitdiff
path: root/linker.ld
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2019-12-26 17:55:15 +0100
committerWojtek Kosior <kwojtus@protonmail.com>2019-12-26 17:55:15 +0100
commit6a5684927d5a6d201b407ff30340307fe9813677 (patch)
tree1b1b3cf6fb889d00f6526728eacf904ff07311c2 /linker.ld
parent32ab77e291eca37677c416ca69fe3fd93e224464 (diff)
downloadrpi-MMU-example-6a5684927d5a6d201b407ff30340307fe9813677.tar.gz
rpi-MMU-example-6a5684927d5a6d201b407ff30340307fe9813677.zip
fix linking of libkernel
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 = .;