diff options
author | Torok Edwin <edwintorok@gmail.com> | 2008-04-06 12:42:29 +0000 |
---|---|---|
committer | Torok Edwin <edwintorok@gmail.com> | 2008-04-06 12:42:29 +0000 |
commit | af4fc28b5633d8cd2225e1b61d864f05a0967366 (patch) | |
tree | 10fe9f126b2c3392179181b8079b0eca68f45e61 /tools | |
parent | e52419147abbc696e9d313b6adf18a1be8ff4389 (diff) | |
download | external_llvm-af4fc28b5633d8cd2225e1b61d864f05a0967366.zip external_llvm-af4fc28b5633d8cd2225e1b61d864f05a0967366.tar.gz external_llvm-af4fc28b5633d8cd2225e1b61d864f05a0967366.tar.bz2 |
-fPIC is required on x86-64 when building shared objects.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49274 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/bugpoint/Miscompilation.cpp | 2 | ||||
-rw-r--r-- | tools/bugpoint/ToolRunner.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/bugpoint/Miscompilation.cpp b/tools/bugpoint/Miscompilation.cpp index 9f4d2ef..f2b1c72 100644 --- a/tools/bugpoint/Miscompilation.cpp +++ b/tools/bugpoint/Miscompilation.cpp @@ -907,7 +907,7 @@ bool BugDriver::debugCodeGenerator() { #if defined(sparc) || defined(__sparc__) || defined(__sparcv9) << " -G" // Compile a shared library, `-G' for Sparc #else - << " -shared" // `-shared' for Linux/X86, maybe others + << " -fPIC -shared" // `-shared' for Linux/X86, maybe others #endif << " -fno-strict-aliasing\n"; diff --git a/tools/bugpoint/ToolRunner.cpp b/tools/bugpoint/ToolRunner.cpp index aa3caff..d1e058e 100644 --- a/tools/bugpoint/ToolRunner.cpp +++ b/tools/bugpoint/ToolRunner.cpp @@ -572,7 +572,7 @@ int GCC::MakeSharedObject(const std::string &InputFile, FileType fileType, GCCArgs.push_back("-shared"); // `-shared' for Linux/X86, maybe others #endif -#if defined(__ia64__) || defined(__alpha__) +#if defined(__ia64__) || defined(__alpha__) || defined(__amd64__) GCCArgs.push_back("-fPIC"); // Requires shared objs to contain PIC #endif #ifdef __sparc__ |