diff options
author | Sylvestre Ledru <sylvestre@debian.org> | 2014-02-11 17:11:32 +0000 |
---|---|---|
committer | Sylvestre Ledru <sylvestre@debian.org> | 2014-02-11 17:11:32 +0000 |
commit | 31575e7fec51fabb276b3b5fb53953c2149e0a5c (patch) | |
tree | 498ee22b1c87412757db0d11859550246738fbb3 /tools | |
parent | 440ef85dd0443f4375f67eb10f97e2555216b86f (diff) | |
download | llvm-31575e7fec51fabb276b3b5fb53953c2149e0a5c.tar.gz llvm-31575e7fec51fabb276b3b5fb53953c2149e0a5c.tar.bz2 llvm-31575e7fec51fabb276b3b5fb53953c2149e0a5c.tar.xz |
If LDPO_PIE is not defined (before binutils 2.23 version),
use the hardcoded declaration 3
See r201110 for the initial change
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201161 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gold/gold-plugin.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/gold/gold-plugin.cpp b/tools/gold/gold-plugin.cpp index b48617f109..26f3f42770 100644 --- a/tools/gold/gold-plugin.cpp +++ b/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 |