If LDPO_PIE is not defined (before binutils 2.23 version),
[oota-llvm.git] / tools / gold / gold-plugin.cpp
index b48617f1096b71c3bdf5706aff83037ac977be44..26f3f42770cc582ffa42a070d62d4d529ef0ba65 100644 (file)
@@ -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