diff options
Diffstat (limited to 'example/mb1/link.ld')
-rw-r--r-- | example/mb1/link.ld | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/example/mb1/link.ld b/example/mb1/link.ld new file mode 100644 index 0000000..0d79ef4 --- /dev/null +++ b/example/mb1/link.ld @@ -0,0 +1,33 @@ +/* MIT License, Copyright (c) 2021 Marvin Borner */ + +OUTPUT_ARCH(i386) +ENTRY(boot_entry) +phys = 0x00100000; + +SECTIONS +{ + . = phys; + + .text BLOCK(4K) : ALIGN(4K) + { + *(.text*) + } + + .rodata BLOCK(4K) : ALIGN(4K) + { + *(.rodata*) + } + + .data BLOCK(4K) : ALIGN(4K) + { + *(.data*) + } + + .bss BLOCK(4K) : ALIGN(4K) + { + *(COMMON) + *(.bss) + } + + end = .; +} |