diff options
Diffstat (limited to 'src/sysbin/linker.ld')
-rw-r--r-- | src/sysbin/linker.ld | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/sysbin/linker.ld b/src/sysbin/linker.ld new file mode 100644 index 0000000..50bebbe --- /dev/null +++ b/src/sysbin/linker.ld @@ -0,0 +1,33 @@ +ENTRY (__libkogata_start) + +SECTIONS{ + . = 0x100000; + + .text : { + *(.text) + } + + .rodata ALIGN (0x1000) :{ + *(.rodata) + } + + .data ALIGN (0x1000) : { + start_ctors = .; + *(.ctor*) + end_ctors = .; + start_dtors = .; + *(.dtor*) + end_dtors = .; + *(.data) + *(.locks) + } + + .bss : { + sbss = .; + *(COMMON) + *(.bss) + ebss = .; + } + + end = .; _end = .; __end = .; +} |