This is an archive of the discontinued LLVM Phabricator instance.

[mips] Handle variables with an explicit section and interactions with .sdata, .sbss
ClosedPublic

Authored by sdardis on Aug 11 2017, 7:37 AM.

Details

Summary

If a variable has an explicit section such as .sdata or .sbss, it is placed
in that section and accessed in a gp relative manner. This overrides the global
-G setting.

Otherwise if a variable has a explicit section attached to it, such as '.rodata'
or '.mysection', it is not placed in the small data section. This also overrides
the global -G setting.

Diff Detail

Repository
rL LLVM

Event Timeline

sdardis created this revision.Aug 11 2017, 7:37 AM
This revision is now accepted and ready to land.Aug 15 2017, 7:34 AM
This revision was automatically updated to reflect the committed changes.