This is an archive of the discontinued LLVM Phabricator instance.

Support arm32 R_ARM_V4BX relocation format
ClosedPublic

Authored by zatrazz on Apr 21 2015, 11:20 AM.

Details

Summary

ARM32 ELF R_ARM_V4BX relocation format is a special relocation type
that records the location of an ARMv4t BX instruction to enable a
static linker to generate ARMv4 compatible instructions. This
relocation does not contain a reference symbol.

This patch enabled its creation by removing the requeriment of a
relocation symbol target in ELFState<ELFT>::writeSectionContent.

Diff Detail

Event Timeline

zatrazz updated this revision to Diff 24149.Apr 21 2015, 11:20 AM
zatrazz retitled this revision from to Support arm32 R_ARM_V4BX relocation format.
zatrazz updated this object.
zatrazz edited the test plan for this revision. (Show Details)
zatrazz added reviewers: ruiu, shankar.easwaran.
zatrazz added a subscriber: Unknown Object (MLST).
ruiu accepted this revision.Apr 21 2015, 11:23 AM
ruiu edited edge metadata.

LGTM

tools/yaml2obj/yaml2elf.cpp
362

Maybe you want to also add "... So we ignore the return value of lookup() here."

This revision is now accepted and ready to land.Apr 21 2015, 11:23 AM
zatrazz closed this revision.Apr 24 2015, 10:10 AM