This is an archive of the discontinued LLVM Phabricator instance.

[LoongArch] Produce a R_LARCH_32_PCREL relocation
ClosedPublic

Authored by wangleiat on Sep 27 2022, 1:12 AM.

Details

Summary

LoongArchELFObjectWriter::getRelocType check IsPCRel for FK_Data_4
(which we produce a R_LARCH_32_PCREL relocation for if IsPCRel).

R_LARCH_32_PCREL is required for FDE relocation.

Diff Detail

Event Timeline

wangleiat created this revision.Sep 27 2022, 1:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 27 2022, 1:12 AM
wangleiat requested review of this revision.Sep 27 2022, 1:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 27 2022, 1:12 AM
xen0n accepted this revision.Sep 27 2022, 1:42 AM

Nice catch...

This revision is now accepted and ready to land.Sep 27 2022, 1:42 AM
SixWeining accepted this revision.Sep 28 2022, 2:31 AM
This revision was landed with ongoing or failed builds.Sep 28 2022, 6:05 PM
This revision was automatically updated to reflect the committed changes.