Fix an old FIXME. LDPO_PIE is available since 2.23, realeased 2012-10-22.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 10 Feb 2014 20:38:38 +0000 (20:38 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 10 Feb 2014 20:38:38 +0000 (20:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201110 91177308-0d34-0410-b5e6-96231b3b80d8

tools/gold/gold-plugin.cpp

index e194038b7d83f027b5cb4566c954f7a214105f01..b48617f1096b71c3bdf5706aff83037ac977be44 100644 (file)
@@ -153,8 +153,7 @@ ld_plugin_status onload(ld_plugin_tv *tv) {
         switch (tv->tv_u.tv_val) {
           case LDPO_REL:  // .o
           case LDPO_DYN:  // .so
-          // FIXME: Replace 3 with LDPO_PIE once that is in a released binutils.
-          case 3: // position independent executable
+          case LDPO_PIE:  // position independent executable
             output_type = LTO_CODEGEN_PIC_MODEL_DYNAMIC;
             break;
           case LDPO_EXEC:  // .exe