Skip to content

Commit

Permalink
elf: Handle 64-bit PC-relative relocation writing LoongArch ELF object
Browse files Browse the repository at this point in the history
  • Loading branch information
xry111 committed Nov 6, 2023
1 parent 3e49afe commit 3e9b281
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/write/elf/object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,7 @@ impl<'a> Object<'a> {
(RelocationKind::Absolute, _, 32) => elf::R_LARCH_32,
(RelocationKind::Absolute, _, 64) => elf::R_LARCH_64,
(RelocationKind::Relative, _, 32) => elf::R_LARCH_32_PCREL,
(RelocationKind::Relative, _, 64) => elf::R_LARCH_64_PCREL,
(RelocationKind::Relative, RelocationEncoding::LoongArchBranch, 16)
| (
RelocationKind::PltRelative,
Expand Down

0 comments on commit 3e9b281

Please sign in to comment.