summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2012-06-13 13:30:24 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2012-06-13 13:30:24 +0000
commit9aa1fcce58625cf538d1f26439ac2ac632b25c64 (patch)
treefd8cfc34d68b80471abcf94bad13bfd4a7e690af /llvm
parent409d8ae165ee12435eafd799d384e8ce3b6b58df (diff)
downloadbcm5719-llvm-9aa1fcce58625cf538d1f26439ac2ac632b25c64.tar.gz
bcm5719-llvm-9aa1fcce58625cf538d1f26439ac2ac632b25c64.zip
Use LTO_CODEGEN_PIC_MODEL_DYNAMIC for PIE. This requirest a git version of
gold to work. Since the enum value LDPO_PIE has just been added to plugin-api.h, use a numeric constant for now so that we don't require an unreleased version of gold to build. llvm-svn: 158402
Diffstat (limited to 'llvm')
-rw-r--r--llvm/tools/gold/gold-plugin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp
index cfd84c0f67d..9c17da6a4cb 100644
--- a/llvm/tools/gold/gold-plugin.cpp
+++ b/llvm/tools/gold/gold-plugin.cpp
@@ -153,6 +153,8 @@ 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
output_type = LTO_CODEGEN_PIC_MODEL_DYNAMIC;
break;
case LDPO_EXEC: // .exe
OpenPOWER on IntegriCloud