aboutsummaryrefslogtreecommitdiff
path: root/aarch64/el0_s/el0_sec.lds.S
diff options
context:
space:
mode:
Diffstat (limited to 'aarch64/el0_s/el0_sec.lds.S')
-rw-r--r--aarch64/el0_s/el0_sec.lds.S23
1 files changed, 23 insertions, 0 deletions
diff --git a/aarch64/el0_s/el0_sec.lds.S b/aarch64/el0_s/el0_sec.lds.S
new file mode 100644
index 0000000..24dbb9d
--- /dev/null
+++ b/aarch64/el0_s/el0_sec.lds.S
@@ -0,0 +1,23 @@
+OUTPUT_FORMAT("elf64-littleaarch64")
+OUTPUT_ARCH(aarch64)
+TARGET(binary)
+ENTRY(main)
+
+#include "platform.h"
+
+SECTIONS
+{
+ . = 0x0;
+ .text . : {
+ *(.text);
+ _EL0_S_TEXT_BASE = EL0_S_BASE_VA;
+ _EL0_S_TEXT_SIZE = SIZEOF(.text);
+ }
+
+ . = ALIGN(4k);
+ .data . : {
+ *(.*data);
+ *(.*bss);
+ _EL0_S_DATA_SIZE = SIZEOF(.data);
+ }
+}