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
refactor: rewrite kernel's make script
[lunaix-os.git]
/
lunaix-os
/
link
/
linker.ld
diff --git
a/lunaix-os/link/linker.ld
b/lunaix-os/link/linker.ld
index 7ea0804fe2d604444b3824e0d6fa258aa66e2289..4ea6b4eecb72d755e225800c1bdb59d6bc3753bf 100644
(file)
--- a/
lunaix-os/link/linker.ld
+++ b/
lunaix-os/link/linker.ld
@@
-14,20
+14,20
@@
SECTIONS {
.hhk_init_text BLOCK(4K) : {
* (.multiboot)
.hhk_init_text BLOCK(4K) : {
* (.multiboot)
-
build/obj/arch/x86
/*.o (.hhk_init)
-
build/obj/arch/x86
/*.o (.text)
+
arch
/*.o (.hhk_init)
+
arch
/*.o (.text)
}
.hhk_init_bss BLOCK(4K) : {
}
.hhk_init_bss BLOCK(4K) : {
-
build/obj/arch/x86
/*.o (.bss)
+
arch
/*.o (.bss)
}
.hhk_init_data BLOCK(4K) : {
}
.hhk_init_data BLOCK(4K) : {
-
build/obj/arch/x86
/*.o (.data)
+
arch
/*.o (.data)
}
.hhk_init_rodata BLOCK(4K) : {
}
.hhk_init_rodata BLOCK(4K) : {
-
build/obj/arch/x86
/*.o (.rodata)
+
arch
/*.o (.rodata)
}
__init_hhk_end = ALIGN(4K);
}
__init_hhk_end = ALIGN(4K);
@@
-37,33
+37,41
@@
SECTIONS {
/* 好了,我们的内核…… */
.text BLOCK(4K) : AT ( ADDR(.text) - 0xC0000000 ) {
__kernel_start = .;
/* 好了,我们的内核…… */
.text BLOCK(4K) : AT ( ADDR(.text) - 0xC0000000 ) {
__kernel_start = .;
- build/obj/kernel/*.o (.text)
- build/obj/hal/*.o (.text)
+ kernel/*.o (.text)
+ hal/*.o (.text)
+ debug/*.o (.text)
+ libs/*.o (.text)
}
__usrtext_start = ALIGN(4K);
.usrtext BLOCK(4K) : AT ( ADDR(.usrtext) - 0xC0000000 ) {
}
__usrtext_start = ALIGN(4K);
.usrtext BLOCK(4K) : AT ( ADDR(.usrtext) - 0xC0000000 ) {
-
build/obj/kernel/*.o
(.usrtext)
+
*
(.usrtext)
}
__usrtext_end = ALIGN(4K);
}
__usrtext_end = ALIGN(4K);
- .data BLOCK(4k) : AT ( ADDR(.data) - 0xC0000000 ) {
- build/obj/kernel/*.o (.data)
- build/obj/hal/*.o (.data)
+ .data BLOCK(4K) : AT ( ADDR(.data) - 0xC0000000 ) {
+ kernel/*.o (.data)
+ hal/*.o (.data)
+ debug/*.o (.data)
+ libs/*.o (.data)
}
.rodata BLOCK(4K) : AT ( ADDR(.rodata) - 0xC0000000 ) {
}
.rodata BLOCK(4K) : AT ( ADDR(.rodata) - 0xC0000000 ) {
- build/obj/kernel/*.o (.rodata)
- build/obj/hal/*.o (.rodata)
+ kernel/*.o (.rodata)
+ hal/*.o (.rodata)
+ debug/*.o (.rodata)
+ libs/*.o (.rodata)
}
.kpg BLOCK(4K) : AT ( ADDR(.kpg) - 0xC0000000 ) {
}
.kpg BLOCK(4K) : AT ( ADDR(.kpg) - 0xC0000000 ) {
-
build/obj/arch/x86
/*.o (.kpg)
+
arch
/*.o (.kpg)
}
.bss BLOCK(4K) : AT ( ADDR(.bss) - 0xC0000000 ) {
}
.bss BLOCK(4K) : AT ( ADDR(.bss) - 0xC0000000 ) {
- build/obj/kernel/*.o (.bss)
- build/obj/hal/*.o (.bss)
+ kernel/*.o (.bss)
+ hal/*.o (.bss)
+ debug/*.o (.bss)
+ libs/*.o (.bss)
}
__kernel_end = ALIGN(4K);
}
__kernel_end = ALIGN(4K);