https://sourceware.org/bugzilla/show_bug.cgi?id=26218
Bug ID: 26218 Summary: Invalid coff/pe arm machine type creating EFI binary Product: binutils Version: 2.32 Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: kallisti5 at unixzen dot com Target Milestone: --- objcopy creates invalid ARM EFI bootloaders. objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym -j .rel -j .rela -j .reloc -j .dynstr -j .debug* --output-target=pei-arm-little --subsystem=efi-app $(2) $(1) Offset to PE: 0x80 Machine type: 0x0a00, Unknown machine type PointerToSymbolTable should be 0. NumberOfSymbols should be 0. Characteristics: 0x0105 * Relocation information was stripped from the file. * COFF line numbers were stripped from the file. * The computer supports 32-bit words. Wrong OHS Magic 0x742e Image type: (crash in EFI analyzer tool) This invalid machine type seems to come from here: http://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=include/coff/arm.h;h=93ce49c1d05114b7d4b1cdb588fd8a1f4f0e68e;hb=HEAD#l78 (include/coff/arm.h line 78) 78 #define ARMMAGIC 0xa00 /* I just made this up */ ARMMAGIC gets references multiple places, with sketchy WINCE ifdef's surrounding ARMPEMAGIC (which is "more sane") http://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=bfd/coffcode.h;h=0910f918d13bf46394e3d3f3da4055fd2aa7a79;hb=HEAD#l2754 -- You are receiving this mail because: You are on the CC list for the bug.