HomePhabricator

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

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

Details

Committed
sfertileFeb 12 2019, 7:35 AM
Differential Revision
D57245: [PPC64] Sort .toc sections accessed with small code model relocs close to the .got part 2
Branches
Unknown
Tags
Unknown