OSDN Git Service

[gold-plugin] Disable section ordering for relocatable links
authorBill Wendling <isanbard@gmail.com>
Thu, 12 Jul 2018 20:35:58 +0000 (20:35 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 12 Jul 2018 20:35:58 +0000 (20:35 +0000)
commit0a4671b355d618ed87ad9b785d8c467bc5bd871e
tree83dae253b64d5f597bca3a7cc2c5d3c1a0d14d48
parent3418676967e14d46493469040af1a69e19bab3bb
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@336943 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/gold/X86/relocatable.ll
tools/gold/gold-plugin.cpp