This is an archive of the discontinued LLVM Phabricator instance.

ELF: Handle R_ARM_V4BX correctly in PIC output files.
ClosedPublic

Authored by pcc on Dec 14 2018, 3:59 PM.

Details

Summary

Previously we considered R_ARM_V4BX to be an absolute relocation,
which meant that we rejected it in read-only sections in PIC output
files. Instead, treat it as a hint relocation so that relocation
processing ignores it entirely.

Also fix a problem with the test case where it was never being run
because it has a .yaml extension and we don't run tests with that
extension.

Diff Detail

Repository
rL LLVM

Event Timeline

pcc created this revision.Dec 14 2018, 3:59 PM
ruiu accepted this revision.Dec 14 2018, 4:12 PM

LGTM

This revision is now accepted and ready to land.Dec 14 2018, 4:12 PM
This revision was automatically updated to reflect the committed changes.
lld/trunk/test/ELF/arm-v4bx.test