diff options
author | Marvin Borner | 2021-07-04 21:31:28 +0200 |
---|---|---|
committer | Marvin Borner | 2021-07-04 21:34:15 +0200 |
commit | 9b8698769535846d029c44247956eed9a21f1185 (patch) | |
tree | 294a17af4102805ab9863274339e8e030897804e /src/loader/link.ld |
Initial commit
Diffstat (limited to 'src/loader/link.ld')
-rw-r--r-- | src/loader/link.ld | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/loader/link.ld b/src/loader/link.ld new file mode 100644 index 0000000..aa97f49 --- /dev/null +++ b/src/loader/link.ld @@ -0,0 +1,35 @@ +/* MIT License, Copyright (c) 2021 Marvin Borner */ + +OUTPUT_FORMAT("elf32-i386") +OUTPUT_ARCH(i386) +ENTRY(start) +phys = 0x7e00; + +SECTIONS +{ + . = phys; + + .text : + { + *(.text.start) + *(.text*) + } + + .rodata : + { + *(.rodata*) + } + + .data : + { + *(.data*) + } + + .bss : + { + *(COMMON) + *(.bss) + } + + end = .; +} |