summaryrefslogtreecommitdiff
path: root/boot/ldscript
diff options
context:
space:
mode:
authorBobby Bingham <koorogi@koorogi.info>2015-07-19 17:17:06 -0500
committerBobby Bingham <koorogi@koorogi.info>2015-09-15 22:43:32 -0500
commitf3885c4b23b0e13d7fe9ef4674a07e746acca320 (patch)
treebaece81713adf89b3c162be7c06dce3a8764747f /boot/ldscript
parente3cbe8f7712fe97d90ff1fb5c675df9a1632eb45 (diff)
build bootloaders from code
This adds the infrastructure for building from source the bootloaders which will go into the application initial program, in the boot sector. As a simple test case, it includes a simple bootloader which merely jumpts to the code address specified in the AIP, with the stack address specified there.
Diffstat (limited to 'boot/ldscript')
-rw-r--r--boot/ldscript22
1 files changed, 22 insertions, 0 deletions
diff --git a/boot/ldscript b/boot/ldscript
new file mode 100644
index 0000000..53a20bf
--- /dev/null
+++ b/boot/ldscript
@@ -0,0 +1,22 @@
+OUTPUT_FORMAT(elf32-shbig-linux)
+ENTRY(__start)
+SECTIONS
+{
+ . = 0x06002f00;
+ .text :
+ {
+ *(.text);
+ }
+ .data :
+ {
+ *(.data);
+ *(.rodata);
+ }
+ .bss ALIGN(4) :
+ {
+ __bss_start = .;
+ *(.bss);
+ __bss_end = (. + 3) & ~ 3;
+ }
+}
+