Mark the EFI PE header as allocated. While ld.bfd doesn't seem to care

about not having this flag ld.lld fails to link without it.

Sponsored by:	DARPA, AFRL
This commit is contained in:
Andrew Turner 2017-03-17 13:31:24 +00:00
parent 1eff4c0c37
commit ffa237e24f

View file

@ -40,7 +40,7 @@
#define IMAGE_SCN_MEM_EXECUTE 0x20000000
#define IMAGE_SCN_MEM_READ 0x40000000
.section .peheader
.section .peheader,"a"
efi_start:
/* The MS-DOS Stub, only used to get the offset of the COFF header */
.ascii "MZ"