Skip to content

loongarch64: Calculate relative relocations based on r_addend - #109

Open
ziyao233 wants to merge 1 commit into
ncroxon:masterfrom
ziyao233:loongarch64/rela-handling
Open

ziyao233 wants to merge 1 commit into
ncroxon:masterfrom
ziyao233:loongarch64/rela-handling

Conversation

@ziyao233

Copy link
Copy Markdown
Contributor

Currently relative relocations in Rela form are calculated in the Rel way, i.e., the addend is read from the relocation target, instead of using the value provided by the Rela entry.

This works before, since at least ld.bfd emits the addend to the relocation target even when relocations are emitted in Rela form. But let's do this in the correct way.

Currently relative relocations in Rela form are calculated in the Rel
way, i.e., the addend is read from the relocation target, instead of
using the value provided by the Rela entry.

This works before, since at least ld.bfd emits the addend to the
relocation target even when relocations are emitted in Rela form. But
let's do this in the correct way.

Signed-off-by: Yao Zi <me@ziyao.cc>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant