5d04b11e0e
* Makefile.in (kernel_img_LDFLAGS): New variable. * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h. * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of overwriting. * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise. * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise. * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise. * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise. * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of overwriting. Remove -lgcc and -static-libgcc * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise. * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h (kernel_img_LDFLAGS): Append instead of overwriting. Remove -lgcc and -static-libgcc * conf/sparc64-ieee1275.rmk: Likewise. * include/grub/powerpc/libgcc.h: Move to ... * include/grub/libgcc.h: .. this. * include/grub/libgcc.h: Don't export most of the function on x86. (__bswapsi2): New export. (__bswapdi2): Likewise. * include/grub/mips/libgcc.h: Removed. * include/grub/sparc64/libgcc.h: Likewise.
84 lines
2.8 KiB
C
84 lines
2.8 KiB
C
/*
|
|
* GRUB -- GRand Unified Bootloader
|
|
* Copyright (C) 2004,2007,2009 Free Software Foundation, Inc.
|
|
*
|
|
* GRUB is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* GRUB is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#include <config.h>
|
|
|
|
/* On x86 these functions aren't really needed. Save some space. */
|
|
#if !defined (__i386__) && !defined (__x86_64__)
|
|
# ifdef HAVE___ASHLDI3
|
|
void EXPORT_FUNC (__ashldi3) (void);
|
|
# endif
|
|
# ifdef HAVE___ASHRDI3
|
|
void EXPORT_FUNC (__ashrdi3) (void);
|
|
# endif
|
|
# ifdef HAVE___LSHRDI3
|
|
void EXPORT_FUNC (__lshrdi3) (void);
|
|
# endif
|
|
# ifdef HAVE___UCMPDI2
|
|
void EXPORT_FUNC (__ucmpdi2) (void);
|
|
# endif
|
|
# ifdef HAVE___BSWAPSI2
|
|
void EXPORT_FUNC (__bswapsi2) (void);
|
|
# endif
|
|
# ifdef HAVE___BSWAPDI2
|
|
void EXPORT_FUNC (__bswapdi2) (void);
|
|
# endif
|
|
#endif
|
|
|
|
#ifdef HAVE___TRAMPOLINE_SETUP
|
|
void EXPORT_FUNC (__trampoline_setup) (void);
|
|
#endif
|
|
|
|
#ifdef HAVE__RESTGPR_14_X
|
|
void EXPORT_FUNC (_restgpr_14_x) (void);
|
|
void EXPORT_FUNC (_restgpr_15_x) (void);
|
|
void EXPORT_FUNC (_restgpr_16_x) (void);
|
|
void EXPORT_FUNC (_restgpr_17_x) (void);
|
|
void EXPORT_FUNC (_restgpr_18_x) (void);
|
|
void EXPORT_FUNC (_restgpr_19_x) (void);
|
|
void EXPORT_FUNC (_restgpr_20_x) (void);
|
|
void EXPORT_FUNC (_restgpr_21_x) (void);
|
|
void EXPORT_FUNC (_restgpr_22_x) (void);
|
|
void EXPORT_FUNC (_restgpr_23_x) (void);
|
|
void EXPORT_FUNC (_restgpr_24_x) (void);
|
|
void EXPORT_FUNC (_restgpr_25_x) (void);
|
|
void EXPORT_FUNC (_restgpr_26_x) (void);
|
|
void EXPORT_FUNC (_restgpr_27_x) (void);
|
|
void EXPORT_FUNC (_restgpr_28_x) (void);
|
|
void EXPORT_FUNC (_restgpr_29_x) (void);
|
|
void EXPORT_FUNC (_restgpr_30_x) (void);
|
|
void EXPORT_FUNC (_restgpr_31_x) (void);
|
|
void EXPORT_FUNC (_savegpr_14) (void);
|
|
void EXPORT_FUNC (_savegpr_15) (void);
|
|
void EXPORT_FUNC (_savegpr_16) (void);
|
|
void EXPORT_FUNC (_savegpr_17) (void);
|
|
void EXPORT_FUNC (_savegpr_18) (void);
|
|
void EXPORT_FUNC (_savegpr_19) (void);
|
|
void EXPORT_FUNC (_savegpr_20) (void);
|
|
void EXPORT_FUNC (_savegpr_21) (void);
|
|
void EXPORT_FUNC (_savegpr_22) (void);
|
|
void EXPORT_FUNC (_savegpr_23) (void);
|
|
void EXPORT_FUNC (_savegpr_24) (void);
|
|
void EXPORT_FUNC (_savegpr_25) (void);
|
|
void EXPORT_FUNC (_savegpr_26) (void);
|
|
void EXPORT_FUNC (_savegpr_27) (void);
|
|
void EXPORT_FUNC (_savegpr_28) (void);
|
|
void EXPORT_FUNC (_savegpr_29) (void);
|
|
void EXPORT_FUNC (_savegpr_30) (void);
|
|
void EXPORT_FUNC (_savegpr_31) (void);
|
|
#endif
|