mirror of https://github.com/tailix/loadwarka.git
Add section .data
This commit is contained in:
parent
ca6447cd14
commit
1cef081aed
|
@ -19,5 +19,10 @@ SECTIONS
|
|||
*(.rodata);
|
||||
}
|
||||
|
||||
.data : ALIGN(4)
|
||||
{
|
||||
*(.data);
|
||||
}
|
||||
|
||||
program_end = .;
|
||||
}
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
.global _start
|
||||
|
||||
.section .rodata
|
||||
disk: .byte 0
|
||||
newline: .string "\r\n"
|
||||
hello: .string "Hello from stage 1!\r\n"
|
||||
size_str: .string "Stage 2 size: "
|
||||
|
@ -19,6 +18,9 @@ parenth: .string " ("
|
|||
of: .string " of "
|
||||
to_address: .string ") to address "
|
||||
|
||||
.section .data
|
||||
disk: .byte 0
|
||||
|
||||
.section .text
|
||||
_start:
|
||||
mov %dl, disk
|
||||
|
|
Loading…
Reference in New Issue