This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Emit const global in .text for AMDPAL OS
AbandonedPublic

Authored by tpr on May 25 2018, 3:32 AM.

Details

Reviewers
kzhuravl
yaxunl
Summary

The PAL ABI does not allow a separate .rodata section, or a reloc. This
commit ensures that a read-only global variable is emitted in .text, and
has no reloc when accessing it with pc-relative addressing.

Change-Id: I9666a7061e7335de498bc6fb1e3b9de098de163b

Diff Detail

Event Timeline

tpr created this revision.May 25 2018, 3:32 AM
tpr abandoned this revision.May 25 2018, 9:17 AM

I withdraw this patch. I was wrong that we need a read-only global variable in the global address space at all for AMDPAL.