This is an archive of the discontinued LLVM Phabricator instance.

[mips][ias] Support .dtprel[d]word and .tprel[d]word directives
ClosedPublic

Authored by atanasyan on Aug 18 2016, 8:54 AM.

Details

Summary

Assembler directives .dtprelword, .dtpreldword, .tprelword, and .tpreldword generates relocations R_MIPS_TLS_DTPREL32, R_MIPS_TLS_DTPREL64, R_MIPS_TLS_TPREL32, and R_MIPS_TLS_TPREL64 respectively.

The main motivation for this patch is to be able to write test cases for checking correctness of the LLD linker's behaviour.

Diff Detail

Repository
rL LLVM

Event Timeline

atanasyan updated this revision to Diff 68547.Aug 18 2016, 8:54 AM
atanasyan retitled this revision from to [mips][ias] Support .dtprel[d]word and .tprel[d]word directives.
atanasyan updated this object.
atanasyan set the repository for this revision to rL LLVM.
atanasyan added a subscriber: llvm-commits.
sdardis accepted this revision.Aug 22 2016, 3:07 AM
sdardis edited edge metadata.

LGTM with obvious comment fix.

lib/MC/MCObjectStreamer.cpp
498

While you're here can you correct this comment? It should be:

Associate GPRel64 fixup with data and resize data area

This revision is now accepted and ready to land.Aug 22 2016, 3:07 AM
This revision was automatically updated to reflect the committed changes.