After applying Steven's (cc'd) patch set and building our driver with
the CLANG38 toolchain, GenFw crashes with a segmentation fault. Due to
unresolved memset and memcpy symbols, I've added the flags "-fbuiltin
-fno-lto".
#0 0x000000000040bccf in WriteRelocations64 () at Elf64Convert.c:975
#1 0x0000000000408219 in ConvertElf (FileBuffer=0x7fffffffde28,
FileLength=0x7fffffffde24) at ElfConvert.c:207
#2 0x0000000000405189 in main (argc=0, argv=0x7fffffffe098) at GenFw.c:2031
Elf64Convert.c:975: VerboseMsg ("Relocation: 0x%08X",
*(UINT64*)CoffFileGoTPcRelPtr);
(gdb) p CoffFileGoTPcRelPtr
$1 = (UINT64 *) 0x7ffff76f8160
(gdb) p *CoffFileGoTPcRelPtr
Cannot access memory at address 0x7ffff76f8160
--
Bruce
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel