aboutsummaryrefslogtreecommitdiffhomepage
path: root/development/ld/data.S
diff options
context:
space:
mode:
authorjohannst <johannst@users.noreply.github.com>2025-04-09 22:28:27 +0000
committerjohannst <johannst@users.noreply.github.com>2025-04-09 22:28:27 +0000
commit4a9214d09d6a526bd029a1f92a01a5f451313c9a (patch)
tree2a4134ffb9b7f1d4cf6eee7e9305125cc878ce1c /development/ld/data.S
parent2cad8341019659a65fc6e94992165b3d7b7a37db (diff)
downloadnotes-4a9214d09d6a526bd029a1f92a01a5f451313c9a.tar.gz
notes-4a9214d09d6a526bd029a1f92a01a5f451313c9a.zip
deploy: 773d9b46ee3b1b88a94e69f42ea42654c63c48ec
Diffstat (limited to 'development/ld/data.S')
-rw-r--r--development/ld/data.S23
1 files changed, 23 insertions, 0 deletions
diff --git a/development/ld/data.S b/development/ld/data.S
new file mode 100644
index 0000000..d76adcf
--- /dev/null
+++ b/development/ld/data.S
@@ -0,0 +1,23 @@
+.section .text, "ax", @progbits
+.global _entry
+_entry:
+ mov $_stack_top, %rsp
+ mov $asm_array, %rax
+ mov (asm_len), %eax
+
+ hlt
+ jmp _entry
+
+.section .data.asm, "aw", @progbits
+asm_array:
+ .4byte 0xa
+ .4byte 0xb
+ .4byte 0xc
+ .4byte 0xd
+.rept 4
+ .4byte 0xff
+.endr
+
+.section .rodata.asm, "a", @progbits
+asm_len:
+ .4byte 8