This is an archive of the discontinued LLVM Phabricator instance.

[ELF][MIPS] Revert r264761 and add test case to demonstrate the problem
ClosedPublic

Authored by atanasyan on Mar 30 2016, 9:29 AM.

Details

Summary

If we make R_MIPS_LO16 a relative relocation, linker:

  • never creates R_MIPS_COPY relocation for it
  • attempts to create R_MIPS_REL32 dynamic relocation if R_MIPS_LO16's target is a preemptible symbol

Diff Detail

Repository
rL LLVM

Event Timeline

atanasyan updated this revision to Diff 52076.Mar 30 2016, 9:29 AM
atanasyan retitled this revision from to [ELF][MIPS] Revert r264761 and add test case to demonstrate the problem.
atanasyan updated this object.
atanasyan added a reviewer: rafael.
atanasyan set the repository for this revision to rL LLVM.
atanasyan added a project: lld.
atanasyan added a subscriber: llvm-commits.
rafael edited edge metadata.Mar 30 2016, 10:41 AM
rafael added a subscriber: rafael.

LGTM.

This revision was automatically updated to reflect the committed changes.