diff options
author | Michael Brown <mcb30@etherboot.org> | 2008-11-18 14:30:37 -0800 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2008-12-05 00:06:27 +0000 |
commit | ce0a0ccf5c2b99be684f13a9418d1556bae5f0ed (patch) | |
tree | 965c86dafc3fbdca8e46ee22b94387242cc0e288 /src/include/compiler.h | |
parent | b0d2c9a4d5b5dd669a845127a37ba08440e2820b (diff) | |
download | ipxe-ce0a0ccf5c2b99be684f13a9418d1556bae5f0ed.tar.gz |
[x86_64] Add support for compilation as an x86_64 binary
Currently the only supported platform for x86_64 is EFI.
Building an EFI64 gPXE requires a version of gcc that supports
__attribute__((ms_abi)). This currently means a development build of
gcc; the feature should be present when gcc 4.4 is released.
In the meantime; you can grab a suitable gcc tree from
git://git.etherboot.org/scm/people/mcb30/gcc/.git
Diffstat (limited to 'src/include/compiler.h')
-rw-r--r-- | src/include/compiler.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/include/compiler.h b/src/include/compiler.h index 4140a3563..7b5a58d62 100644 --- a/src/include/compiler.h +++ b/src/include/compiler.h @@ -59,6 +59,15 @@ __asm__ ( ".equ\t" OBJECT_SYMBOL_STR ", 0" ); #define REQUIRE_OBJECT(object) \ __asm__ ( ".equ\tneed_" #object ", obj_" #object ); +/* Force visibility of all symbols to "hidden", i.e. inform gcc that + * all symbol references resolve strictly within our final binary. + * This avoids unnecessary PLT/GOT entries on x86_64. + * + * This is a stronger claim than specifying "-fvisibility=hidden", + * since it also affects symbols marked with "extern". + */ +#pragma GCC visibility push(hidden) + /** @def DBG * * Print a debugging message. |