diff options
Diffstat (limited to 'src/lib/linker.ld')
-rw-r--r-- | src/lib/linker.ld | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/lib/linker.ld b/src/lib/linker.ld new file mode 100644 index 0000000..7495c6c --- /dev/null +++ b/src/lib/linker.ld @@ -0,0 +1,33 @@ +ENTRY (__libc_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 = .; +} |