[PATCH] D30637: [LLD][ELF] Fix problem with LA25 Thunks when OutputSection of caller and callee differ

Peter Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 6 03:26:37 PST 2017


peter.smith created this revision.

This is a simple mistake when saving the target output section of the Thunk, for the Mips LA25 Thunk it needs to be the OutputSection of the callee and not the caller.

I've added a test case with sufficiently different section names that they get put in different OutputSections. In the existing test case the OutputSection of the caller and callee are the same so this problem doesn't show up.


https://reviews.llvm.org/D30637

Files:
  ELF/Relocations.cpp
  test/ELF/mips-npic-call-pic-os.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30637.90667.patch
Type: text/x-patch
Size: 7306 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170306/259201fb/attachment.bin>


More information about the llvm-commits mailing list