aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg/aarch64/system/kernel.ld
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tcg/aarch64/system/kernel.ld')
-rw-r--r--tests/tcg/aarch64/system/kernel.ld24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/tcg/aarch64/system/kernel.ld b/tests/tcg/aarch64/system/kernel.ld
new file mode 100644
index 0000000000..7b3a76dcbf
--- /dev/null
+++ b/tests/tcg/aarch64/system/kernel.ld
@@ -0,0 +1,24 @@
+ENTRY(__start)
+
+SECTIONS
+{
+ /* virt machine, RAM starts at 1gb */
+ . = (1 << 30);
+ .text : {
+ *(.text)
+ }
+ .rodata : {
+ *(.rodata)
+ }
+ /* align r/w section to next 2mb */
+ . = ALIGN(1 << 21);
+ .data : {
+ *(.data)
+ }
+ .bss : {
+ *(.bss)
+ }
+ /DISCARD/ : {
+ *(.ARM.attributes)
+ }
+}