From d42b629d983de336ddd3c22782caa2791ab78897 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Sun, 5 Mar 2017 21:43:19 +0100 Subject: initial commit --- arch/x86_64/memmap | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 arch/x86_64/memmap (limited to 'arch/x86_64/memmap') diff --git a/arch/x86_64/memmap b/arch/x86_64/memmap new file mode 100644 index 0000000..78bdf9b --- /dev/null +++ b/arch/x86_64/memmap @@ -0,0 +1,30 @@ +ENTRY(loader) +OUTPUT_ARCH(i386:i386) +OUTPUT_FORMAT(elf32-i386) + +SECTIONS +{ + . = 0x0100000; + + .text : + { + *(.multiboot) + *(.text*) + *(.rodata) + } + + .data : + { + start_ctors = .; + KEEP(*(.init_array)); + KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*))); + end_ctors = .; + } + + .bss : + { + *(.bss) + } + + /DISCARD/ : { *(.fini_array*) *(.comment) } +} -- cgit v1.2.3