[PATCH 1/3] makedep: Align PE sections so they can be mmapped.

Martin Storsjö martin at martin.st
Fri May 29 08:05:39 CDT 2020

On Fri, 29 May 2020, Jacek Caban wrote:

> - PE alignment
> The patch breaks build with llvm-mingw because lld doesn't support 
> --file-alignment.

FWIW, this should be trivial to add support for in lld's mingw frontend - 
lld-link underneath it supports the corresponding link.exe style option.

> - symbols in ELF file
> We could do that, creating an exotic mix then building on mac, with PE, 
> Mach-O and ELF files. Another option would be 
> CROSSLDFLAGS=-Wl,--objcopy,-Oelf64-x86-64, but it doesn't seem nice...

FWIW, llvm-objcopy doesn't support converting to another object file 
format than the input, at the moment - and _that_ bit is a much larger 
task to take on.

// Martin

More information about the wine-devel mailing list