* 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.
This commit is contained in:
parent
450e22389f
commit
a3f7515a6e
5 changed files with 26 additions and 3 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
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>
|
2009-04-10 David S. Miller <davem@davemloft.net>
|
||||||
|
|
||||||
* disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
|
* disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
|
||||||
|
|
|
@ -82,7 +82,7 @@ kernel_elf_SOURCES = kern/sparc64/ieee1275/init.c kern/ieee1275/ieee1275.c \
|
||||||
kernel_elf_HEADERS = grub/sparc64/ieee1275/ieee1275.h
|
kernel_elf_HEADERS = grub/sparc64/ieee1275/ieee1275.h
|
||||||
kernel_elf_CFLAGS = $(COMMON_CFLAGS)
|
kernel_elf_CFLAGS = $(COMMON_CFLAGS)
|
||||||
kernel_elf_ASFLAGS = $(COMMON_ASFLAGS)
|
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.
|
# Modules.
|
||||||
#_linux.mod linux.mod
|
#_linux.mod linux.mod
|
||||||
|
|
4
configure
vendored
4
configure
vendored
|
@ -5813,7 +5813,9 @@ fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for ac_func in posix_memalign memalign asprintf
|
|
||||||
|
|
||||||
|
for ac_func in posix_memalign memalign asprintf __bswapsi2 __bswapdi2
|
||||||
do
|
do
|
||||||
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
||||||
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
|
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
|
||||||
|
|
|
@ -200,7 +200,7 @@ if test "$target_cpu"-"$platform" = i386-pc; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check for functions.
|
# Check for functions.
|
||||||
AC_CHECK_FUNCS(posix_memalign memalign asprintf)
|
AC_CHECK_FUNCS(posix_memalign memalign asprintf __bswapsi2 __bswapdi2)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Check for target programs.
|
# Check for target programs.
|
||||||
|
|
|
@ -16,4 +16,16 @@
|
||||||
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
|
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <config.h>
|
||||||
|
|
||||||
void EXPORT_FUNC (memset) (void);
|
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
|
||||||
|
|
Loading…
Add table
Reference in a new issue