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:
Nigel Croxon 2016-03-28 09:00:57 -04:00
parent dd5c3db93b
commit 58e6955b44
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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