This is not an issue with the edk2 tools. Theses relocations deal with dynamic
linking so this is an issue with your compiler flags.
In a static link image you don't need a PC relative relocation. The Global
Offset Table is about patching globals. These concepts don't exist in PE/COFF
relocati
Thanks for info. I managed to perform successfull build with binutils
ld.bfd and gcc 4.6 /w USE="-vanilla -hardened".
Looks like misssing relocations are R_X86_64_PC64 and GOT variants.
> Native GCC X64 build is supported.
> But looks you are using Gentoo2.2 and its built-in gcc is a variant of
Native GCC X64 build is supported.
But looks you are using Gentoo2.2 and its built-in gcc is a variant of native
GCC. It generates some Relocation sections which couldn't be identified GenFw
tool in BaseTools.
The related code is in BaseTools\Source\C\GenFw\Elf64Convert.c. If you are
interesti