[llvm] r201163 - Improve the declaration when LDPO_PIE is not available.
Sylvestre Ledru
sylvestre at debian.org
Tue Feb 11 09:30:18 PST 2014
Author: sylvestre
Date: Tue Feb 11 11:30:18 2014
New Revision: 201163
URL: http://llvm.org/viewvc/llvm-project?rev=201163&view=rev
Log:
Improve the declaration when LDPO_PIE is not available.
Thanks to İsmail Dönmez for the better declaration.
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=201163&r1=201162&r2=201163&view=diff
==============================================================================
--- llvm/trunk/tools/gold/gold-plugin.cpp (original)
+++ llvm/trunk/tools/gold/gold-plugin.cpp Tue Feb 11 11:30:18 2014
@@ -38,6 +38,12 @@
# define read _read
#endif
+#ifndef LDPO_PIE
+// FIXME: remove this declaration when we stop maintaining Ubuntu Quantal and
+// Precise and Debian Wheezy (binutils 2.23 is required)
+# define LDPO_PIE 3
+#endif
+
using namespace llvm;
namespace {
@@ -153,14 +159,7 @@ 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