2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
* configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3', `__trampoline_setup' and `__ucmpdi2'. * include/grub/powerpc/libgcc.h: Only export symbols for functions that libgcc provides.
This commit is contained in:
parent
cdb308b0e1
commit
346e7fbedb
3 changed files with 21 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
|
||||||
|
|
||||||
|
* configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
|
||||||
|
`__trampoline_setup' and `__ucmpdi2'.
|
||||||
|
* include/grub/powerpc/libgcc.h: Only export symbols for functions
|
||||||
|
that libgcc provides.
|
||||||
|
|
||||||
2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
|
2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
|
||||||
|
|
||||||
* include/grub/powerpc/libgcc.h (memset): Remove function prototype.
|
* include/grub/powerpc/libgcc.h (memset): Remove function prototype.
|
||||||
|
|
|
@ -412,7 +412,7 @@ AC_SUBST(TARGET_CPPFLAGS)
|
||||||
AC_SUBST(TARGET_LDFLAGS)
|
AC_SUBST(TARGET_LDFLAGS)
|
||||||
|
|
||||||
# Check for libgcc symbols (must be performed before we add -nostdlib to LDFLAGS)
|
# Check for libgcc symbols (must be performed before we add -nostdlib to LDFLAGS)
|
||||||
AC_CHECK_FUNCS(__bswapsi2 __bswapdi2)
|
AC_CHECK_FUNCS(__bswapsi2 __bswapdi2 __ashldi3 __ashrdi3 __lshrdi3 __trampoline_setup __ucmpdi2)
|
||||||
|
|
||||||
# Set them to their new values for the tests below.
|
# Set them to their new values for the tests below.
|
||||||
CC="$TARGET_CC"
|
CC="$TARGET_CC"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* GRUB -- GRand Unified Bootloader
|
* GRUB -- GRand Unified Bootloader
|
||||||
* Copyright (C) 2004,2007 Free Software Foundation, Inc.
|
* Copyright (C) 2004,2007,2009 Free Software Foundation, Inc.
|
||||||
*
|
*
|
||||||
* GRUB is free software: you can redistribute it and/or modify
|
* GRUB is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -16,8 +16,20 @@
|
||||||
* 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>
|
||||||
|
|
||||||
|
#ifdef HAVE___ASHLDI3
|
||||||
void EXPORT_FUNC (__ashldi3) (void);
|
void EXPORT_FUNC (__ashldi3) (void);
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE___ASHRDI3
|
||||||
void EXPORT_FUNC (__ashrdi3) (void);
|
void EXPORT_FUNC (__ashrdi3) (void);
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE___LSHRDI3
|
||||||
void EXPORT_FUNC (__lshrdi3) (void);
|
void EXPORT_FUNC (__lshrdi3) (void);
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE___TRAMPOLINE_SETUP
|
||||||
void EXPORT_FUNC (__trampoline_setup) (void);
|
void EXPORT_FUNC (__trampoline_setup) (void);
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE___UCMPDI2
|
||||||
void EXPORT_FUNC (__ucmpdi2) (void);
|
void EXPORT_FUNC (__ucmpdi2) (void);
|
||||||
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue