summaryrefslogtreecommitdiffhomepage
path: root/src/arm64/script.lds
diff options
context:
space:
mode:
authorAmlal <amlal.elmahrouss@icloud.com>2025-01-21 20:32:19 +0100
committerAmlal <amlal.elmahrouss@icloud.com>2025-01-21 20:32:19 +0100
commit046d884b50c32cacd3523071541e7e38241083f3 (patch)
tree92ce6fd53e0c031c569270b04aefa8fc0aa1e074 /src/arm64/script.lds
ADD: CoreBoot, also comes with my reimplementation of libfdt, which is just a dumb rewrite.
Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'src/arm64/script.lds')
-rw-r--r--src/arm64/script.lds14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/arm64/script.lds b/src/arm64/script.lds
new file mode 100644
index 0000000..37bd647
--- /dev/null
+++ b/src/arm64/script.lds
@@ -0,0 +1,14 @@
+ENTRY(mp_reset_vector)
+SECTIONS
+{
+ . = 0x40100000;
+
+ .text : { *(.text) }
+ .data : { *(.data) }
+ .bss : { *(.bss COMMON) }
+ . = ALIGN(8);
+ . = . + 0x1000; /* 4kB of stack memory */
+ __mp_stack_end = .;
+
+ PROVIDE(mp_memory_end = .);
+}