projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9dc8fb
)
loongarch64_pei_vec garbage in objcopy'd relocs
author
Alan Modra
<amodra@gmail.com>
Fri, 19 Aug 2022 00:53:11 +0000
(10:23 +0930)
committer
Alan Modra
<amodra@gmail.com>
Fri, 19 Aug 2022 01:00:45 +0000
(10:30 +0930)
Like commit
a9c09a3667cc
, but for loongarch64.
* coff-loongarch64.c (SWAP_IN_RELOC_OFFSET): Define.
(SWAP_OUT_RELOC_OFFSET): Define.
bfd/coff-loongarch64.c
patch
|
blob
|
history
diff --git
a/bfd/coff-loongarch64.c
b/bfd/coff-loongarch64.c
index 8013737a08a71a30b5610e525349cd232cccee40..f752efbb51debb0accce0061f0053b6501332ffa 100644
(file)
--- a/
bfd/coff-loongarch64.c
+++ b/
bfd/coff-loongarch64.c
@@
-71,6
+71,10
@@
static reloc_howto_type pe_loongarch64_std_reloc_howto[] =
#define bfd_pe_print_pdata NULL
#endif
+/* Handle include/coff/loongarch64.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. */