Files
my-os-project2/user/arch/x86_64/link.ld

37 lines
424 B
Plaintext

ENTRY(_start)
SECTIONS {
. = 0x400000;
.text ALIGN(4K):
{
*(.text .text*)
}
.rodata (READONLY): ALIGN(4K)
{
*(.rodata .rodata*)
}
.data ALIGN(4K):
{
*(.data .data*)
}
.bss ALIGN(4K):
{
_bss_start = .;
*(.bss .bss*)
. = ALIGN(4K);
_bss_end = .;
}
/DISCARD/ : {
*(.eh_frame)
*(.eh_frame_hdr)
*(.gcc_except_table*)
*(.note*)
*(.comment)
}
}