This is an archive of the discontinued LLVM Phabricator instance.

[ELF][PPC64] Enable R_PPC64_REL14 trunks
ClosedPublic

Authored by MaskRay on Mar 26 2020, 10:49 PM.

Details

Summary

The thunk implementation is available but an assertion disallows it.
Linux kernel has such a use case: in arch/powerpc/kernel/exceptions-64s.S:handle_page_fault,
beq+ ret_from_except_lite may get out of range.

Link: https://github.com/ClangBuiltLinux/linux/issues/951

Diff Detail

Event Timeline

MaskRay created this revision.Mar 26 2020, 10:49 PM
MaskRay updated this revision to Diff 254016.Mar 31 2020, 3:09 PM

Rebase after D76907

This revision was not accepted when it landed; it landed in state Needs Review.Apr 4 2020, 11:09 AM
This revision was automatically updated to reflect the committed changes.