This is an archive of the discontinued LLVM Phabricator instance.

[JITLink][ELF][AArch64] Implement R_AARCH64_MOVW_UABS_G*_NC.
ClosedPublic

Authored by sunho on Jun 11 2022, 8:37 PM.

Details

Summary

Implements R_AARCH64_MOVW_UABS_G*_NC fixup edges. These relocation entries can be generated when code is compiled without a PIC flag. With this patch, clang-repl can printf Hello World with ObjectLinkerLayer on aarch64 linux.

Diff Detail

Event Timeline

sunho created this revision.Jun 11 2022, 8:37 PM
sunho requested review of this revision.Jun 11 2022, 8:37 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 11 2022, 8:37 PM
lhames accepted this revision.Jun 13 2022, 6:13 PM

LGTM. Thanks @sunho!

This revision is now accepted and ready to land.Jun 13 2022, 6:13 PM
This revision was landed with ongoing or failed builds.Jun 13 2022, 10:07 PM
This revision was automatically updated to reflect the committed changes.