Browse Source

Merge /u/xypron/gnu-efi/ branch GCC_visibility into master

https://sourceforge.net/p/gnu-efi/code/merge-requests/20/
b'Nigel Croxon 3 years ago
parent
commit
9e7e6822b7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      inc/arm/efibind.h

+ 1 - 1
inc/arm/efibind.h

@@ -38,7 +38,7 @@ typedef int32_t             intptr_t;
  * 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__
+#if defined(__GNUC__) && !__STDC_HOSTED__
 #pragma GCC visibility push (hidden)
 #endif