git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Decoupling Architectural-specific Code (#35)
[lunaix-os.git]
/
lunaix-os
/
link
/
linker.ld
diff --git
a/lunaix-os/link/linker.ld
b/lunaix-os/link/linker.ld
index a409542624fbe546ab7907b7d4840a1c6f25b391..c3d57dac72cf24b6fdbd9fa7e1f2b8b134be8d3c 100644
(file)
--- a/
lunaix-os/link/linker.ld
+++ b/
lunaix-os/link/linker.ld
@@
-2,6
+2,7
@@
ENTRY(start_)
SECTIONS {
. = 0x100000;
SECTIONS {
. = 0x100000;
+ __kboot_start = .;
/* 这里是我们的高半核初始化代码段和数据段 */
.boot.text BLOCK(4K) :
/* 这里是我们的高半核初始化代码段和数据段 */
.boot.text BLOCK(4K) :
@@
-29,7
+30,7
@@
SECTIONS {
{
*(.boot.rodata)
}
{
*(.boot.rodata)
}
- __k
exec_
boot_end = ALIGN(4K);
+ __kboot_end = ALIGN(4K);
/* ---- boot end ---- */
/* ---- boot end ---- */
@@
-179,10
+180,24
@@
SECTIONS {
}
}
+ .ksymtable BLOCK(4K) : AT ( ADDR(.ksymtable) - 0xC0000000 )
+ {
+ *(.ksymtable)
+ }
+
.bss BLOCK(4K) : AT ( ADDR(.bss) - 0xC0000000 )
{
*(.bss)
}
.bss BLOCK(4K) : AT ( ADDR(.bss) - 0xC0000000 )
{
*(.bss)
}
+ .bss.kstack BLOCK(4K) : AT ( ADDR(.bss.kstack) - 0xC0000000)
+ {
+ PROVIDE(__bsskstack_start = .);
+
+ *(.bss.kstack)
+
+ PROVIDE(__bsskstack_end = .);
+ }
+
__kexec_end = ALIGN(4K);
}
\ No newline at end of file
__kexec_end = ALIGN(4K);
}
\ No newline at end of file