summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorTorok Edwin <edwintorok@gmail.com>2009-02-04 19:12:25 +0000
committerTorok Edwin <edwintorok@gmail.com>2009-02-04 19:12:25 +0000
commitc409c778177ad40bb66a132e83297f4ac9cdfb96 (patch)
tree89ecb1793789bc61071d8d1be700ef738924a4f5 /llvm/tools
parent4ab311dc30ffb0a65d355d1fdabeb5e0c5186830 (diff)
downloadbcm5719-llvm-c409c778177ad40bb66a132e83297f4ac9cdfb96.tar.gz
bcm5719-llvm-c409c778177ad40bb66a132e83297f4ac9cdfb96.zip
mention that PIC is needed for libLTO and libLLVMgold
llvm-svn: 63755
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/gold/README.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/tools/gold/README.txt b/llvm/tools/gold/README.txt
index 6427d09c770..92ee3d16afb 100644
--- a/llvm/tools/gold/README.txt
+++ b/llvm/tools/gold/README.txt
@@ -13,5 +13,9 @@ there configure binutils with "../src/configure --enable-gold --enable-plugins".
Then build binutils with "make all-gold".
To build the LLVMgold plugin, configure LLVM with the option
---with-binutils-include=/path/to/binutils/src/include/ . To use the
+--with-binutils-include=/path/to/binutils/src/include/ --enable-pic. To use the
plugin, run "ld-new --plugin /path/to/libLLVMgold.so".
+Without PIC libLTO and libLLVMgold are not being built (because they would fail
+link on x86-64 with a relocation error: PIC and non-PIC can't be combined).
+As an alternative to passing --enable-pic, you can use 'make ENABLE_PIC=1' in
+your entire LLVM build.
OpenPOWER on IntegriCloud