[PATCH] Sparc64 support

Blue Swirl blauwirbel at gmail.com
Fri Jul 20 14:59:10 UTC 2007


I got the library to compile with the attached patches, though dynamic
loader crashes early.

In buildroot I changed the architecture name by hand from sparc to
sparc64, otherwise the compiler produced 32-bit files with V9 (64-bit)
instructions. This configuration is not supported by QEMU, so I aimed
for pure 64-bit. I think Sparc64 option needs to be added to
buildroot.

The _Qp_ ops seem to be required by the ABI. This and setjmp patches
are just hacks to get the compilation further. The _Qp_ ops can be
found in glibc, would it be OK to use those?

V9 assembler requires declarations for global register use.

The mem* functions in sparc32 directory did not work. They are
actually used only by the hybrid 32-bit + V9 CPU configuration.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uClibc-0.9.29-add_Qp_ops.patch
Type: application/x-patch
Size: 1594 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20070720/c64b6c77/attachment-0012.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uClibc-0.9.29-fix-math_inc.patch
Type: application/x-patch
Size: 461 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20070720/c64b6c77/attachment-0013.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uClibc-0.9.29-fix-setjmp.patch
Type: application/x-patch
Size: 447 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20070720/c64b6c77/attachment-0014.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uClibc-0.9.29-fix-sparc64_register_errors.patch
Type: application/x-patch
Size: 1025 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20070720/c64b6c77/attachment-0015.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uClibc-0.9.29-fix_memchr.patch
Type: application/x-patch
Size: 4175 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20070720/c64b6c77/attachment-0016.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uClibc-0.9.29-fix_sparc64-kernel_stat.patch
Type: application/x-patch
Size: 699 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20070720/c64b6c77/attachment-0017.bin 


More information about the uClibc mailing list