diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2017-03-05 21:43:19 +0100 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2017-03-05 21:43:19 +0100 |
commit | d42b629d983de336ddd3c22782caa2791ab78897 (patch) | |
tree | ac3a3052c154ca88803df5754eb6c8459e246b2f /arch/x86_64/memmap | |
download | garmos-d42b629d983de336ddd3c22782caa2791ab78897.tar.gz garmos-d42b629d983de336ddd3c22782caa2791ab78897.tar.bz2 |
initial commit
Diffstat (limited to 'arch/x86_64/memmap')
-rw-r--r-- | arch/x86_64/memmap | 30 |
1 files changed, 30 insertions, 0 deletions
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) } +} |