This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Emit correct build attributes for the different relocation models
ClosedPublic

Authored by rmaprath on May 27 2014, 1:58 AM.

Details

Reviewers
aemerson
Summary

Generate build attributes:

  1. Tag_ABI_PCS_RW_data
  2. Tag_ABI_PCS_RO_data
  3. Tag_ABI_PCS_GOT_use

Based on the selected relocation model.

Diff Detail

Event Timeline

rmaprath updated this revision to Diff 9825.May 27 2014, 1:58 AM
rmaprath retitled this revision from to [ARM] Emit correct build attributes for the different relocation models.
rmaprath updated this object.
rmaprath edited the test plan for this revision. (Show Details)
rmaprath set the repository for this revision to rL LLVM.
rmaprath added a subscriber: Unknown Object (MLST).

Hi Asiri,

The code looks correct to me, from what I understand of the ABI. I've just got one issue with the comments

Cheers.

Tim.

include/llvm/Support/ARMBuildAttributes.h
150–151

I think the comments are misleading: the point is that compatible objects *must* use PCRel or SBRel addressing, not that they can if they want to.

I was confused until I looked at the actual ABI addendum.

aemerson accepted this revision.May 27 2014, 6:41 AM
aemerson added a reviewer: aemerson.

Thanks Tim. I've committed Asiri's modified patch in r209656.

This revision is now accepted and ready to land.May 27 2014, 6:41 AM
rmaprath closed this revision.Aug 28 2014, 3:35 AM