Hi Cran,
Can you build the OVMF with CLANG38 in your side? 
And if possible, pls send me your driver .dll Elf image and I can try to debug 
the GenFw convert in my side.


Steven Shi
Intel\SSG\STO\UEFI Firmware

Tel: +86 021-61166522
iNet: 821-6522


> -----Original Message-----
> From: Bruce Cran [mailto:[email protected]]
> Sent: Wednesday, June 29, 2016 11:37 AM
> To: [email protected]
> Cc: Shi, Steven <[email protected]>
> Subject: Segfault in GenFw when building driver with new CLANG38 toolchain
> 
> 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

Reply via email to