static libgcc.
* configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
* include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
function, if present.
(__bswapdi2): Likewise.
+2009-04-11 David S. Miller <davem@davemloft.net>
+
+ * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
+ static libgcc.
+ * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
+ * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
+ function, if present.
+ (__bswapdi2): Likewise.
+
2009-04-10 David S. Miller <davem@davemloft.net>
* disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
kernel_elf_HEADERS = grub/sparc64/ieee1275/ieee1275.h
kernel_elf_CFLAGS = $(COMMON_CFLAGS)
kernel_elf_ASFLAGS = $(COMMON_ASFLAGS)
-kernel_elf_LDFLAGS = -mno-app-regs -nostdlib -Wl,-N,-Ttext,0x200000,-Bstatic,-melf64_sparc
+kernel_elf_LDFLAGS = -mno-app-regs -nostdlib -Wl,-N,-Ttext,0x200000,-Bstatic,-melf64_sparc -static-libgcc -lgcc
# Modules.
#_linux.mod linux.mod
-for ac_func in posix_memalign memalign asprintf
+
+
+for ac_func in posix_memalign memalign asprintf __bswapsi2 __bswapdi2
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
fi
# Check for functions.
-AC_CHECK_FUNCS(posix_memalign memalign asprintf)
+AC_CHECK_FUNCS(posix_memalign memalign asprintf __bswapsi2 __bswapdi2)
#
# Check for target programs.
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <config.h>
+
void EXPORT_FUNC (memset) (void);
+
+#ifdef HAVE___BSWAPSI2
+typedef int SItype __attribute__ ((mode (SI)));
+SItype EXPORT_FUNC (__bswapsi2) (SItype);
+#endif
+
+#ifdef HAVE___BSWAPDI2
+typedef int DItype __attribute__ ((mode (DI)));
+DItype EXPORT_FUNC (__bswapdi2) (DItype);
+#endif