mirror of
https://github.com/Leonmmcoset/cleonos.git
synced 2026-04-24 19:34:01 +00:00
应用程序套件
This commit is contained in:
29
kit/linker/user.ld
Normal file
29
kit/linker/user.ld
Normal file
@@ -0,0 +1,29 @@
|
||||
OUTPUT_FORMAT(elf64-x86-64)
|
||||
ENTRY(_start)
|
||||
|
||||
PHDRS {
|
||||
text PT_LOAD FLAGS(5);
|
||||
rodata PT_LOAD FLAGS(4);
|
||||
data PT_LOAD FLAGS(6);
|
||||
}
|
||||
|
||||
SECTIONS {
|
||||
. = 0x00400000;
|
||||
|
||||
.text : ALIGN(0x1000) {
|
||||
*(.text .text.*)
|
||||
} :text
|
||||
|
||||
.rodata : ALIGN(0x1000) {
|
||||
*(.rodata .rodata.*)
|
||||
} :rodata
|
||||
|
||||
.data : ALIGN(0x1000) {
|
||||
*(.data .data.*)
|
||||
} :data
|
||||
|
||||
.bss : ALIGN(0x1000) {
|
||||
*(COMMON)
|
||||
*(.bss .bss.*)
|
||||
} :data
|
||||
}
|
||||
Reference in New Issue
Block a user