.section ".tbss.end"
.globl _tbss_end
_tbss_end:
+
+.section ".tohost","aw",@progbits
+.align 6
+.globl tohost
+tohost: .dword 0
+.align 6
+.globl fromhost
+fromhost: .dword 0
// initialized in crt.S
int have_vec;
-volatile uint64_t tohost __attribute__((aligned(64)));
-volatile uint64_t fromhost __attribute__((aligned(64)));
+extern volatile uint64_t tohost;
+extern volatile uint64_t fromhost;
static long handle_frontend_syscall(long which, long arg0, long arg1, long arg2)
{
/* text: test code section */
. = 0x80000000;
- .text :
- {
- crt.o(.text)
- *(.text)
- }
+ .text.init : { crt.o(.text) }
+
+ .tohost ALIGN(0x1000) : { *(.tohost) }
+
+ .text : { *(.text) }
/* data segment */
.data : { *(.data) }
-Subproject commit e0010519c57a2b88d0d03d38c21ba0a68f81f2e2
+Subproject commit e0d1ea452c2a40ca47ec720e7da8c31daa317307