This is an archive of the discontinued LLVM Phabricator instance.

Simplify gp0 handling
ClosedPublic

Authored by rafael on Apr 19 2016, 3:45 PM.

Details

Reviewers
atanasyan
Summary

If gp0 cannot point to merge sections (or if -r takes care of it) this is a simplification.

If gp0 can point to a merge section this is either a fix or a regression. In either case it would be awesome if you could provide a testcase :-)
Currently all tests pass with this.

Diff Detail

Event Timeline

rafael updated this revision to Diff 54284.Apr 19 2016, 3:45 PM
rafael retitled this revision from to Simplify gp0 handling.
rafael updated this object.
rafael added a reviewer: atanasyan.
rafael added a subscriber: llvm-commits.
atanasyan accepted this revision.Apr 20 2016, 7:55 AM
atanasyan edited edge metadata.

LGTM

I cannot imagine the case when R_MIPS_GPRELxxx points to a merge section. Anyway now LLD does not support relocations pointing to SHF_MERGE for any targets. So let's consider the patch as a simplification.

This revision is now accepted and ready to land.Apr 20 2016, 7:55 AM
atanasyan closed this revision.Apr 24 2016, 4:13 AM

Closed by commit rL266888.