forked from Imagelibrary/binutils-gdb
riscv64-pei uninitialised data writing relocs
Without this patch the r_offset field of struct external_reloc is uninitialised when using objcopy. * coff/riscv64.h (SWAP_IN_RELOC_OFFSET): Define. (SWAP_OUT_RELOC_OFFSET): Define.
This commit is contained in:
@@ -60,5 +60,7 @@ struct external_reloc
|
||||
|
||||
#define RELOC struct external_reloc
|
||||
#define RELSZ 14
|
||||
#define SWAP_IN_RELOC_OFFSET H_GET_32
|
||||
#define SWAP_OUT_RELOC_OFFSET H_PUT_32
|
||||
|
||||
#endif /* COFF_RISCV64_H */
|
||||
|
||||
Reference in New Issue
Block a user