[PATCH] D17934: [ELF] Implement infrastructure for thunk code creation

Simon Atanasyan via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 7 12:11:32 PST 2016


atanasyan added a comment.

In http://reviews.llvm.org/D17934#369150, @ruiu wrote:

> I'm still reading this patch, but does it work for all cases? When you want to create a thunk for a short-range jump instruction, you want to locate that thunk within the range of the instruction. Output sections can be large. Putting thunks at end of each output section will work?


I had a solution which puts stubs in the beginning of the corresponding input section. In that case the risk to get too long jump is smaller. But this solution seemed to me over-complicated a bit. Let me think again till tomorrow. Maybe I revert that solution.


Repository:
  rL LLVM

http://reviews.llvm.org/D17934





More information about the llvm-commits mailing list