blob: 286d9af13b5485cfb80a693165a3a7842fb80d20 [file] [log] [blame]
Alp Tokerc7cf4862013-12-02 14:17:47 +00001The LLVM Gold LTO Plugin
2========================
3
Nick Lewycky3e62b2d2009-02-03 07:13:24 +00004This directory contains a plugin that is designed to work with binutils
5gold linker. At present time, this is not the default linker in
6binutils, and the default build of gold does not support plugins.
7
Alp Tokerc7cf4862013-12-02 14:17:47 +00008See docs/GoldPlugin.html for complete build and usage instructions.
Nick Lewycky3e62b2d2009-02-03 07:13:24 +00009
Alp Tokerc7cf4862013-12-02 14:17:47 +000010NOTE: libLTO and LLVMgold aren't built without PIC because they would fail
11to link on x86-64 with a relocation error: PIC and non-PIC can't be combined.
Torok Edwin1845d992009-02-04 19:12:25 +000012As an alternative to passing --enable-pic, you can use 'make ENABLE_PIC=1' in
13your entire LLVM build.