This is an archive of the discontinued LLVM Phabricator instance.

[LLD][ELF] Prefer placing ThunkSections before non ThunkSections

Authored by peter.smith on Apr 4 2017, 4:40 AM.



When there is an inline thunks such as the Mips LA25 and a non inline thunk in the same OutputSection at the same OutSecOff we must make sure that we output the inline thunk last as control may drop through.

At present we haven't implemented any ARM inline thunks yet, and there aren't any non-inline thunks for Mips so this change may not be necessary just yet.

Diff Detail

Event Timeline

peter.smith created this revision.Apr 4 2017, 4:40 AM
peter.smith abandoned this revision.May 16 2017, 7:37 AM

I'm abandoning the range thunks implementation that inserts into OutputSections in favour of an implementation that inserts into InputSectionDescription.