HomePhabricator

[PPC64] Sort .toc sections accessed with small code model relocs.

Authored by sfertile on Feb 12 2019, 7:35 AM.

Description

[PPC64] Sort .toc sections accessed with small code model relocs.

A follow up to the intial patch that unblocked linking against libgcc.
For lld we don't need to bother tracking which objects have got based small
code model relocations. This is due to the fact that the compilers on
powerpc64 use the .toc section to generate indirections to symbols (rather then
using got relocations) which keeps the got small. This makes overflowing a
small code model got relocation very unlikely.

Differential Revision: https://reviews.llvm.org/D57245

llvm-svn: 353849