summaryrefslogtreecommitdiffstats
path: root/llvm/tools/gccld/gccld.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-02 22:07:38 +0000
committerChris Lattner <sabre@nondot.org>2005-08-02 22:07:38 +0000
commitab08df96995ae2845fde3290b77f73f9d18a274c (patch)
tree6612375fed02928f6646631c041f7fd0063c0038 /llvm/tools/gccld/gccld.cpp
parent0caa43492fed0139f492fdc28d93be696770d192 (diff)
downloadbcm5719-llvm-ab08df96995ae2845fde3290b77f73f9d18a274c.tar.gz
bcm5719-llvm-ab08df96995ae2845fde3290b77f73f9d18a274c.zip
Pass -export-dynamic to gcc when compiling with -native and the link is
performed with -export-dynamic (aka. -disable-internalize). Patch by Nicholas Riley! llvm-svn: 22601
Diffstat (limited to 'llvm/tools/gccld/gccld.cpp')
-rw-r--r--llvm/tools/gccld/gccld.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/tools/gccld/gccld.cpp b/llvm/tools/gccld/gccld.cpp
index 2ae13aa7d4e..5c0fbb90d85 100644
--- a/llvm/tools/gccld/gccld.cpp
+++ b/llvm/tools/gccld/gccld.cpp
@@ -308,8 +308,8 @@ int main(int argc, char **argv, char **envp ) {
Verbose);
if (Verbose) std::cout << "Generating Native Code\n";
GenerateNative(OutputFilename, AssemblyFile.toString(),
- LibPaths, Libraries, gcc, envp, LinkAsLibrary, RPath,
- SOName, Verbose);
+ LibPaths, Libraries, gcc, envp, LinkAsLibrary,
+ NoInternalize, RPath, SOName, Verbose);
if (!SaveTemps) {
// Remove the assembly language file.
@@ -340,8 +340,8 @@ int main(int argc, char **argv, char **envp ) {
GenerateCFile(CFile.toString(), RealBytecodeOutput, llc, Verbose);
if (Verbose) std::cout << "Generating Native Code\n";
GenerateNative(OutputFilename, CFile.toString(),
- LibPaths, Libraries, gcc, envp, LinkAsLibrary, RPath,
- SOName, Verbose);
+ LibPaths, Libraries, gcc, envp, LinkAsLibrary,
+ NoInternalize, RPath, SOName, Verbose);
if (!SaveTemps) {
// Remove the assembly language file.
OpenPOWER on IntegriCloud