diff options
author | Christian Cunningham <cc@localhost> | 2022-08-17 22:14:15 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-08-17 22:14:15 -0700 |
commit | 91d0ae783e51062f77b120b05c97cd352b9b86d5 (patch) | |
tree | 0270dfe976f91c11e62bb960420b366c08545d6f /src/bsp/raspberrypi/linker.ld |
Initial commit
Diffstat (limited to 'src/bsp/raspberrypi/linker.ld')
-rw-r--r-- | src/bsp/raspberrypi/linker.ld | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/bsp/raspberrypi/linker.ld b/src/bsp/raspberrypi/linker.ld new file mode 100644 index 0000000..aa60bbb --- /dev/null +++ b/src/bsp/raspberrypi/linker.ld @@ -0,0 +1,40 @@ +ENTRY(_start) + +SECTIONS +{ + . = 0x8000; + __start = .; + __text_start = .; + .text : + { + KEEP(*(.text.boot)) + KEEP(*(.text.exceptions)) + KEEP(*(.text.kernel)) + *(.text*) + } + . = 0x208000; + __text_end = .; + + __data_start = .; + .data : + { + *(.data*) + __stacks_start = .; + KEEP(*(.data.stacks)) + } + . = ALIGN(4096); + __data_end = .; + + __bss_start = .; + .bss : + { + bss = .; + . = ALIGN(4096); + KEEP(*(.bss.sysstacks)) + *(.bss) + *(.bss*) + } + . = ALIGN(4096); + __bss_end = .; + __end = .; +} |