HomePhabricator

[gold-plugin] Disable section ordering for relocatable links

Authored by void on Jul 12 2018, 1:35 PM.

Description

[gold-plugin] Disable section ordering for relocatable links

Not all programs want section ordering when compiled with LTO.
In particular, the Linux kernel is very sensitive when it comes to linking, and
doesn't boot when each function is placed in its own sections.

Reviewed By: pcc

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

llvm-svn: 336943

Details