uweigand opened PR #4680 from s390x-reloc
to main
:
This enables the object backend for s390x, in particular the
processing of all required relocations.This uncovered a bug: we need to use PLT relocations for the
target of calls, which we currently do not. Fixed by adding
a new S390xPLTRel32Dbl reloc type and using it where needed.FYI - @cfallin @bjorn3
<!--Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
bjorn3 submitted PR review.
bjorn3 created PR review comment:
I think this should check is_colocated and use PCRel if true. That is faster than going through the PLT.
uweigand created PR review comment:
That's not really necessary; the JIT backend doesn't use PLTs anyway, and when generating object files, the linker will omit PLTs when they are not needed. LLVM also always emits PLT relocations and relies on the linker to optimize them away.
uweigand submitted PR review.
cfallin submitted PR review.
cfallin has enabled auto merge for PR #4680.
cfallin merged PR #4680.
Last updated: Dec 23 2024 at 12:05 UTC