[2078] * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with

"David S. Miller" <[email protected]>
Newsgroups gmane.comp.boot-loaders.grub.cvs
Message-ID <[email protected]>
Revision: 2078
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2078
Author:   davem
Date:     2009-04-11 08:24:49 +0000 (Sat, 11 Apr 2009)
Log Message:
-----------
	* 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.

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/conf/sparc64-ieee1275.rmk
    trunk/grub2/configure
    trunk/grub2/configure.ac
    trunk/grub2/include/grub/sparc64/libgcc.h

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog	2009-04-11 03:09:17 UTC (rev 2077)
+++ trunk/grub2/ChangeLog	2009-04-11 08:24:49 UTC (rev 2078)
@@ -1,3 +1,12 @@
+2009-04-11  David S. Miller  <[email protected]>
+
+	* 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  <[email protected]>
 
 	* disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg

Modified: trunk/grub2/conf/sparc64-ieee1275.rmk
===================================================================
--- trunk/grub2/conf/sparc64-ieee1275.rmk	2009-04-11 03:09:17 UTC (rev 2077)
+++ trunk/grub2/conf/sparc64-ieee1275.rmk	2009-04-11 08:24:49 UTC (rev 2078)
@@ -82,7 +82,7 @@
 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

Modified: trunk/grub2/configure
===================================================================
--- trunk/grub2/configure	2009-04-11 03:09:17 UTC (rev 2077)
+++ trunk/grub2/configure	2009-04-11 08:24:49 UTC (rev 2078)
@@ -5813,7 +5813,9 @@
 
 
 
-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

Modified: trunk/grub2/configure.ac
===================================================================
--- trunk/grub2/configure.ac	2009-04-11 03:09:17 UTC (rev 2077)
+++ trunk/grub2/configure.ac	2009-04-11 08:24:49 UTC (rev 2078)
@@ -200,7 +200,7 @@
 fi
 
 # Check for functions.
-AC_CHECK_FUNCS(posix_memalign memalign asprintf)
+AC_CHECK_FUNCS(posix_memalign memalign asprintf __bswapsi2 __bswapdi2)
 
 #
 # Check for target programs.

Modified: trunk/grub2/include/grub/sparc64/libgcc.h
===================================================================
--- trunk/grub2/include/grub/sparc64/libgcc.h	2009-04-11 03:09:17 UTC (rev 2077)
+++ trunk/grub2/include/grub/sparc64/libgcc.h	2009-04-11 08:24:49 UTC (rev 2078)
@@ -16,4 +16,16 @@
  *  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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.