Archived
46 lines
1.1 KiB
Plaintext
46 lines
1.1 KiB
Plaintext
/* ──────────────────────────────────────────────────────────────
|
|
* servers/user.ld — opencoreRS userspace server linker script
|
|
*
|
|
* Раскладка в userspace виртуальной памяти:
|
|
* 0x00400000 — стандартный base address для userspace ELF
|
|
* ─────────────────────────────────────────────────────────────*/
|
|
|
|
ENTRY(_start)
|
|
|
|
USER_VIRT_BASE = 0x00400000;
|
|
|
|
SECTIONS
|
|
{
|
|
. = USER_VIRT_BASE;
|
|
|
|
.text ALIGN(4K) :
|
|
{
|
|
*(.text .text.*)
|
|
}
|
|
|
|
.rodata ALIGN(4K) :
|
|
{
|
|
*(.rodata .rodata.*)
|
|
}
|
|
|
|
.data ALIGN(4K) :
|
|
{
|
|
*(.data .data.*)
|
|
}
|
|
|
|
.bss ALIGN(4K) :
|
|
{
|
|
__bss_start = .;
|
|
*(.bss .bss.*)
|
|
*(COMMON)
|
|
__bss_end = .;
|
|
}
|
|
|
|
/DISCARD/ :
|
|
{
|
|
*(.comment)
|
|
*(.eh_frame)
|
|
*(.note .note.*)
|
|
}
|
|
}
|