projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e15ee8
)
If LDPO_PIE is not defined (before binutils 2.23 version),
author
Sylvestre Ledru
<sylvestre@debian.org>
Tue, 11 Feb 2014 17:11:32 +0000
(17:11 +0000)
committer
Sylvestre Ledru
<sylvestre@debian.org>
Tue, 11 Feb 2014 17:11:32 +0000
(17:11 +0000)
use the hardcoded declaration 3
See r201110 for the initial change
llvm-svn: 201161
llvm/tools/gold/gold-plugin.cpp
patch
|
blob
|
history
diff --git
a/llvm/tools/gold/gold-plugin.cpp
b/llvm/tools/gold/gold-plugin.cpp
index
b48617f
..
26f3f42
100644
(file)
--- 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