sys: add ld runtime linker
This commit is contained in:
30
sys/ld/arch/x86_64/layout.ld
Normal file
30
sys/ld/arch/x86_64/layout.ld
Normal file
@@ -0,0 +1,30 @@
|
||||
ENTRY(_start)
|
||||
|
||||
SECTIONS {
|
||||
.text ALIGN(4K) : {
|
||||
*(.text)
|
||||
*(.rodata)
|
||||
}
|
||||
|
||||
.rodata ALIGN(4K) : {
|
||||
|
||||
}
|
||||
|
||||
.data ALIGN(4K) : {
|
||||
*(.data)
|
||||
*(.bss)
|
||||
*(.dynamic)
|
||||
}
|
||||
|
||||
.dynamic ALIGN(8) : {
|
||||
*(.dynamic)
|
||||
}
|
||||
|
||||
.got.plt ALIGN(4K) : {
|
||||
*(.got.plt)
|
||||
}
|
||||
|
||||
/DISCARD/ : {
|
||||
*(.interp)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user