diff --git a/test/linker.ld b/test/linker.ld index 1dd95644..4eed14a0 100644 --- a/test/linker.ld +++ b/test/linker.ld @@ -1,44 +1,37 @@ ENTRY(stivale_main) -PHDRS { - none PT_NULL FLAGS(0); - text PT_LOAD FLAGS((1 << 2) | (1 << 0) /* Readable | Executable */); - data PT_LOAD FLAGS((1 << 2) | (1 << 1) /* Readable | Writeable */); - rodata PT_LOAD FLAGS((1 << 2) /* Readable */); -} - SECTIONS { . = 0xffffffff80100000; .stivalehdr ALIGN(4K) : { - KEEP(*(.stivalehdr)) - }:none + *(.stivalehdr) + } .stivale2hdr ALIGN(4K) : { - KEEP(*(.stivale2hdr)) + *(.stivale2hdr) } .text ALIGN(4K) : { - KEEP(*(.text*)) - }:text + *(.text*) + } .rodata ALIGN(4K) : { - KEEP(*(.rodata*)) - }:rodata + *(.rodata*) + } .data ALIGN(4K) : { - KEEP(*(.data*)) - }:data + *(.data*) + } .bss ALIGN(4K) : { - KEEP(*(COMMON)) - KEEP(*(.bss*)) + *(COMMON) + *(.bss*) } }