This is an archive of the discontinued LLVM Phabricator instance.

[RelocationResolver] Support new LoongArch relocs
Needs RevisionPublic

Authored by xen0n on Jun 7 2023, 12:00 AM.

Details

Summary

Support for applicable LAELF v20230519 relocs are added, minus the
couple of ULEB128 relocs that cannot be supported with the current API:
a buffer or stream is required to be able to decode/encode LEB128
values, while currently only LocData is available which is just an
integer.

A previous oversight that led to always-zero LocData for LoongArch is
also fixed.

Diff Detail

Event Timeline

xen0n created this revision.Jun 7 2023, 12:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 7 2023, 12:00 AM
xen0n requested review of this revision.Jun 7 2023, 12:00 AM

Some relocations can be tested like D134164

MaskRay requested changes to this revision.Aug 30 2023, 11:09 PM
This revision now requires changes to proceed.Aug 30 2023, 11:09 PM
hev added a subscriber: hev.Sep 5 2023, 1:02 AM