This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by peter.smith on Mar 6 2017, 3:26 AM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

peter.smith created this revision.Mar 6 2017, 3:26 AM
ruiu accepted this revision.Mar 6 2017, 7:41 AM

LGTM

This revision is now accepted and ready to land.Mar 6 2017, 7:41 AM
This revision was automatically updated to reflect the committed changes.