summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2014-02-11 17:11:32 +0000
committerSylvestre Ledru <sylvestre@debian.org>2014-02-11 17:11:32 +0000
commit1515a48e1431115b99bec216e29c204847294b14 (patch)
treea4be513df6037b314f69c6f039334058e733a478 /llvm/tools
parent6e15ee85d1a58ea18fbc8c8fcd9d90cd7ed06ba7 (diff)
downloadbcm5719-llvm-1515a48e1431115b99bec216e29c204847294b14.tar.gz
bcm5719-llvm-1515a48e1431115b99bec216e29c204847294b14.zip
If LDPO_PIE is not defined (before binutils 2.23 version),
use the hardcoded declaration 3 See r201110 for the initial change llvm-svn: 201161
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/gold/gold-plugin.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp
index b48617f1096..26f3f42770c 100644
--- a/llvm/tools/gold/gold-plugin.cpp
+++ b/llvm/tools/gold/gold-plugin.cpp
@@ -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
OpenPOWER on IntegriCloud