[PATCH] D31665: [LLD][ELF] Add test cases for range extension thunks (no linkerscripts)

Peter Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 4 04:47:03 PDT 2017


peter.smith created this revision.
Herald added subscribers: rengolin, aemerson.

Add test cases for range extension thunks that do not use linkerscripts. These include tests for:

- OutputSection larger than Thumb2 branch range
- Range extension thunks to PLT
- Mix of ARM and Thumb range extension thunks
- Special case of Thumb condition branch with short range of 1Mb
- Thunks drifting out of range

Testing range extension thunks isn't pleasant as testing some of the cases needs a single large OutputSection. I've also found that llvm-objdump doesn't handle large files very well so I've had to do multiple calls with restricted address ranges. The disassembly of branch targets is not good either.


https://reviews.llvm.org/D31665

Files:
  test/ELF/arm-thumb-condbranch-thunk.s
  test/ELF/arm-thumb-mix-range-thunk-os.s
  test/ELF/arm-thumb-plt-range-thunk-os.s
  test/ELF/arm-thumb-range-thunk-os.s
  test/ELF/arm-thunk-multipass.s
  test/ELF/arm-thunk-re-add.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31665.94048.patch
Type: text/x-patch
Size: 32554 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170404/e419f2e1/attachment.bin>


More information about the llvm-commits mailing list