diff options
Diffstat (limited to 'libc/sysdeps/linux/h8300')
-rw-r--r-- | libc/sysdeps/linux/h8300/crt0.S | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/h8300/crt0.S b/libc/sysdeps/linux/h8300/crt0.S index b94551b9d..dc7dc8b6d 100644 --- a/libc/sysdeps/linux/h8300/crt0.S +++ b/libc/sysdeps/linux/h8300/crt0.S @@ -37,7 +37,7 @@ _start: /* put here so that references to _start work with elf-PIC */ mov.l @(4,sp),er1 /* argv */ mov.l @(8,sp),er2 /* envp */ jsr @___uClibc_main - + /* If that didn't kill us, ... */ __exit: mov.l er0,er1 @@ -58,3 +58,12 @@ empty_func: .set atexit,empty_func #endif + +/* Define a symbol for the first piece of initialized data. */ + .data + .globl __data_start +__data_start: + .long 0 + .weak data_start + data_start = __data_start + |