[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/26218] Invalid coff/pe arm machine type creating EFI binar
From: |
tnfchris at sourceware dot org |
Subject: |
[Bug binutils/26218] Invalid coff/pe arm machine type creating EFI binary |
Date: |
Wed, 30 Jun 2021 12:14:48 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=26218
Tamar Christina <tnfchris at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tnfchris at sourceware dot org
--- Comment #3 from Tamar Christina <tnfchris at sourceware dot org> ---
(In reply to Nick Clifton from comment #1)
> Hi Alexander,
>
> > 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)
>
> Does this work if you replace pei-arm-little with pei-arm-wince-little ?
>
> > Wrong OHS Magic 0x742e
>
> What is the correct OHS Magic value ?
>
> Cheers
> Nick
Looks like binutils already contains the right magic values
#define ARMPEMAGIC 0x1c0
#define THUMBPEMAGIC 0x1c2
But the problem is how do we change the default target's magic value..
If we just change it I believe we break objdump and the linker's ability to
recognize the format.
perhaps expose it as a different format?
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/26218] Invalid coff/pe arm machine type creating EFI binary,
tnfchris at sourceware dot org <=