view sources/patches/uClibc-sparcfix.patch @ 1702:1829b36abc97 draft

Start of sh2 big endian (nommu!) support. Doesn't work yet (ash has an #error if you try to build it nommu).
author Rob Landley <rob@landley.net>
date Mon, 27 Oct 2014 17:02:14 -0500
parents c1d26568dbb8
children
line wrap: on
line source

The sparc dynamic linker segfaults without this.  I should track down why
and do a proper fix that doesn't hit common code...

diff -ruN uClibc-0.9.32.bak/ldso/include/dl-hash.h uClibc-0.9.32/ldso/include/dl-hash.h
--- uClibc-0.9.32.bak/ldso/include/dl-hash.h	2011-06-08 14:35:20.000000000 -0500
+++ uClibc-0.9.32/ldso/include/dl-hash.h	2011-11-10 17:53:49.148917902 -0600
@@ -111,7 +111,11 @@
   ElfW(Addr) relro_addr;
   size_t relro_size;
 
+#ifdef __sparc__
+  int st_dev;
+#else
   dev_t st_dev;      /* device */
+#endif
   ino_t st_ino;      /* inode */
 
 #ifdef __powerpc__