diff options
author | Torok Edwin <edwintorok@gmail.com> | 2009-02-04 19:12:25 +0000 |
---|---|---|
committer | Torok Edwin <edwintorok@gmail.com> | 2009-02-04 19:12:25 +0000 |
commit | 1845d990411933f6bf6f92b28913cc7383a66835 (patch) | |
tree | a85effd620cfd51dee48081a9fcbdbbff371b471 /tools/gold/README.txt | |
parent | e6c1473e5628e719bddd10da16c54ae8b79e1ef2 (diff) |
mention that PIC is needed for libLTO and libLLVMgold
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63755 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gold/README.txt')
-rw-r--r-- | tools/gold/README.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/gold/README.txt b/tools/gold/README.txt index 6427d09c770..92ee3d16afb 100644 --- a/tools/gold/README.txt +++ b/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. |