mirror of https://github.com/acidanthera/audk.git
c9f297559b
For X64/GCC, we use position independent code with hidden visibility to inform the compiler that symbol references are never resolved at runtime, which removes the need for PLTs and GOTs. However, in some cases, GCC has been reported to still emit PLT based relocations, which we need to handle in the ELF to PE/COFF perform by GenFw. Unlike GOT based relocations, which are non-trivial to handle since the indirections in the code can not be fixed up easily (although relocation types exist for X64 that annotate relocation targets as suitable for relaxation), PLT relocations simply point to jump targets, and we can relax such relocations by resolving them using the symbol directly rather than via a PLT entry that does nothing more than tail call the function we already know it is going to call (since all symbol references are resolved in the same module). So handle R_X86_64_PLT32 as a R_X86_64_PC32 relocation. Suggested-by: Steven Shi <steven.shi@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Liming Gao <liming.gao@intel.com> |
||
---|---|---|
.. | ||
BootSectImage | ||
Common | ||
EfiLdrImage | ||
EfiRom | ||
GenBootSector | ||
GenCrc32 | ||
GenFfs | ||
GenFv | ||
GenFw | ||
GenPage | ||
GenSec | ||
GenVtf | ||
GnuGenBootSector | ||
Include | ||
LzmaCompress | ||
Makefiles | ||
PyEfiCompressor | ||
PyUtility | ||
Split | ||
TianoCompress | ||
VfrCompile | ||
VolInfo | ||
GNUmakefile | ||
Makefile |