diff options
author | Mark Harmstone <mark@harmstone.com> | 2022-12-14 00:51:57 +0000 |
---|---|---|
committer | Mark Harmstone <mark@harmstone.com> | 2023-01-10 23:30:42 +0000 |
commit | 5093b5a5e7e3e51116207eb2dec81846140fc604 (patch) | |
tree | f6e1a1251b60389b7a349fc53bc90fa674d44ceb /bfd | |
parent | 38190b2f01051795b15867359a4273e6cb0ade12 (diff) | |
download | fsf-binutils-gdb-5093b5a5e7e3e51116207eb2dec81846140fc604.zip fsf-binutils-gdb-5093b5a5e7e3e51116207eb2dec81846140fc604.tar.gz fsf-binutils-gdb-5093b5a5e7e3e51116207eb2dec81846140fc604.tar.bz2 |
Fix size of external_reloc for pe-aarch64
This patch series finishes off the work by Jedidiah Thompson, and adds
support for creating aarch64 PE images.
This should be essentially complete: I've used this to create a "hello
world" Windows program in asm, and (with GCC patches) a UEFI program in
C. I think the only things missing are the .secidx relocation, which is
needed for PDBs, and the SEH pseudos used for C++ exceptions.
This first patch fixes the size of RELSZ; I'm not sure why it was 14 in
the first place. This is the size of the "Base Relocation Block" in
https://learn.microsoft.com/en-us/windows/win32/debug/pe-format, and
AFAIK should be 10 for everything.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/coff-aarch64.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/bfd/coff-aarch64.c b/bfd/coff-aarch64.c index 8a514b2..236cbb7 100644 --- a/bfd/coff-aarch64.c +++ b/bfd/coff-aarch64.c @@ -188,10 +188,6 @@ coff_aarch64_rtype_lookup (unsigned int code) #define bfd_pe_print_pdata NULL #endif -/* Handle include/coff/aarch64.h external_reloc. */ -#define SWAP_IN_RELOC_OFFSET H_GET_32 -#define SWAP_OUT_RELOC_OFFSET H_PUT_32 - /* Return TRUE if this relocation should appear in the output .reloc section. */ |