diff options
Diffstat (limited to 'libc/sysdeps/linux/h8300/crt0.S')
-rw-r--r-- | libc/sysdeps/linux/h8300/crt0.S | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/h8300/crt0.S b/libc/sysdeps/linux/h8300/crt0.S index dc7dc8b6d..a593b88e2 100644 --- a/libc/sysdeps/linux/h8300/crt0.S +++ b/libc/sysdeps/linux/h8300/crt0.S @@ -36,7 +36,12 @@ _start: /* put here so that references to _start work with elf-PIC */ mov.l @(0,sp),er0 /* argc */ mov.l @(4,sp),er1 /* argv */ mov.l @(8,sp),er2 /* envp */ +#if !defined(__PIC__) jsr @___uClibc_main +#else + mov.l @(___uClibc_main@GOTOFF,er5),er3 + jsr @er3 +#endif /* If that didn't kill us, ... */ __exit: |