Fix register printing in disassembling of push/pop of segment registers and in/out...
[oota-llvm.git] / tools / gold / README.txt
index 6427d09c77005ce34f781d96cf3a08c06a7f1deb..a906a9083ec4c9c563219029f8fd94fe6acd6efe 100644 (file)
@@ -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
-plugin, run "ld-new --plugin /path/to/libLLVMgold.so".
+--with-binutils-include=/path/to/binutils/src/include/ --enable-pic. To use the
+plugin, run "ld-new --plugin /path/to/LLVMgold.so".
+Without PIC libLTO and LLVMgold 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.