diff options
Diffstat (limited to 'src/development/ld/data.S')
-rw-r--r-- | src/development/ld/data.S | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/development/ld/data.S b/src/development/ld/data.S new file mode 100644 index 0000000..d76adcf --- /dev/null +++ b/src/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 |