The linker does not set up the Small Data Area symbols, _SDA_BASE_ and _SDA2_BASE_ so don't try to resolve them
Signed-off-by: Ryan Flux <[email protected]> Signed-off-by: Steve Bennett <[email protected]> --- libc/sysdeps/linux/microblaze/crt0.S | 3 +++ libc/sysdeps/linux/microblaze/crt1.S | 3 +++ 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/libc/sysdeps/linux/microblaze/crt0.S b/libc/sysdeps/linux/microblaze/crt0.S index 591c3a2..f6692ae 100644 --- a/libc/sysdeps/linux/microblaze/crt0.S +++ b/libc/sysdeps/linux/microblaze/crt0.S @@ -31,9 +31,12 @@ C_ENTRY(_start): add r3, r3, r3 add r7, r6, r3 /* add to argv to get offset */ +/* No SDAs on linux */ +#if 0 /* Load SDAs */ la r2, r0, C_SYMBOL_NAME(_SDA_BASE_) la r13, r0, C_SYMBOL_NAME(_SDA2_BASE_) +#endif /* tail-call uclibc's startup routine */ brid C_SYMBOL_NAME(__uClibc_main) diff --git a/libc/sysdeps/linux/microblaze/crt1.S b/libc/sysdeps/linux/microblaze/crt1.S index e9564cf..195e139 100644 --- a/libc/sysdeps/linux/microblaze/crt1.S +++ b/libc/sysdeps/linux/microblaze/crt1.S @@ -24,9 +24,12 @@ .align 4 C_SYMBOL_NAME(_start): +/* No SDAs on linux */ +#if 0 /* Load SDAs */ la r2, r0, C_SYMBOL_NAME(_SDA2_BASE_) /* in the original source r2 was SDA, and r13 was SDA2, no idea why */ la r13, r0, C_SYMBOL_NAME(_SDA_BASE_) +#endif /* Preparing arguments for uClibc's startup routine. -- 1.7.4.4 _______________________________________________ uClibc mailing list [email protected] http://lists.busybox.net/mailman/listinfo/uclibc
