This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/SI: Don't use fixup_si_rodata for scratch rsrc relocations
ClosedPublic

Authored by tstellarAMD on Jun 8 2016, 1:50 PM.

Details

Summary

We need to set the fixup type to FK_Data_4 for the
SCRATCH_RSRC_DWORD[01] symbols, since these require absolute
relocations, and fixup_si_rodata is for relative relocations.

Diff Detail

Repository
rL LLVM

Event Timeline

tstellarAMD retitled this revision from to AMDGPU/SI: Don't use fixup_si_rodata for scratch rsrc relocations.
tstellarAMD updated this object.
tstellarAMD added reviewers: arsenm, kzhuravl.
tstellarAMD added a subscriber: llvm-commits.
arsenm accepted this revision.Jun 8 2016, 1:53 PM
arsenm edited edge metadata.

LGTM

lib/Target/AMDGPU/MCTargetDesc/SIMCCodeEmitter.cpp
253–257 ↗(On Diff #60102)

ternary operator

This revision is now accepted and ready to land.Jun 8 2016, 1:53 PM
kzhuravl accepted this revision.Jun 9 2016, 5:59 PM
kzhuravl edited edge metadata.
This revision was automatically updated to reflect the committed changes.