diff options
author | Alex Auvolat <alex@adnab.me> | 2015-03-10 20:12:10 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2015-03-10 20:12:10 +0100 |
commit | 6d9cd139c42a48f5ddf8f8e284f56873de73fd31 (patch) | |
tree | 7b4ca008eb6375c0d5ba9eb1456674ee996fb5d6 /src/sysbin/linker.ld | |
parent | 4ab8b6206b1ba36cbf4db4a416e04304bbd7ebc0 (diff) | |
download | kogata-6d9cd139c42a48f5ddf8f8e284f56873de73fd31.tar.gz kogata-6d9cd139c42a48f5ddf8f8e284f56873de73fd31.zip |
Things are happenning ; lots of bugs.
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 = .; +} |