mirror of https://github.com/ncroxon/gnu-efi
The following fixes a couple GCC specifics for the ARM platform,
that MSVC compilers will complain about (such as Visual Studio 2015 with ARM target). Signed-off-by: Pete Batard <pbatard@users.sf.net> Signed-off-by: Nigel Croxon <nigel.croxon@hpe.com>
This commit is contained in:
parent
dd5c3db93b
commit
58e6955b44
|
@ -36,7 +36,9 @@ typedef signed char int8_t; // unqualified 'char' is unsigned on ARM
|
|||
* This prevents GCC from emitting GOT based relocations, and use R_ARM_REL32
|
||||
* relative relocations instead, which are more suitable for static binaries.
|
||||
*/
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC visibility push (hidden)
|
||||
#endif
|
||||
|
||||
//
|
||||
// Basic EFI types of various widths
|
||||
|
|
|
@ -25,6 +25,7 @@ InitializeLibPlatform (
|
|||
{
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
/*
|
||||
* Calls to these functions may be emitted implicitly by GCC even when
|
||||
* -ffreestanding is in effect.
|
||||
|
@ -55,4 +56,4 @@ void __div0(void)
|
|||
// TODO handle divide by zero fault
|
||||
while (1);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue