[llvm] r201161 - If LDPO_PIE is not defined (before binutils 2.23 version),

Sylvestre Ledru sylvestre at debian.org
Tue Feb 11 09:11:32 PST 2014


Author: sylvestre
Date: Tue Feb 11 11:11:32 2014
New Revision: 201161

URL: http://llvm.org/viewvc/llvm-project?rev=201161&view=rev
Log:
If LDPO_PIE is not defined (before binutils 2.23 version), 
use the hardcoded declaration 3
See r201110 for the initial change


Modified:
    llvm/trunk/tools/gold/gold-plugin.cpp

Modified: llvm/trunk/tools/gold/gold-plugin.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/gold/gold-plugin.cpp?rev=201161&r1=201160&r2=201161&view=diff
==============================================================================
--- llvm/trunk/tools/gold/gold-plugin.cpp (original)
+++ llvm/trunk/tools/gold/gold-plugin.cpp Tue Feb 11 11:11:32 2014
@@ -153,7 +153,14 @@ ld_plugin_status onload(ld_plugin_tv *tv
         switch (tv->tv_u.tv_val) {
           case LDPO_REL:  // .o
           case LDPO_DYN:  // .so
+#ifdef LDPO_PIE
           case LDPO_PIE:  // position independent executable
+#else
+          // FIXME: remove this declaration when we stop maintaining
+          // Ubuntu Quantal and Precise and Debian Wheezy (binutils 2.23 is
+          // required)
+          case 3:
+#endif
             output_type = LTO_CODEGEN_PIC_MODEL_DYNAMIC;
             break;
           case LDPO_EXEC:  // .exe





More information about the llvm-commits mailing list