aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.rules2
-rw-r--r--autoconf/ExportMap.map4
2 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 388372e0a9..11d295ceb6 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -1079,7 +1079,7 @@ LD.Flags += -Wl,-exported_symbol -Wl,_main
endif
ifeq ($(OS), $(filter $(OS), Linux NetBSD FreeBSD))
-LD.Flags += -Wl,--version-script=Driver.map
+LD.Flags += -Wl,--version-script=$(LLVM_SRC_ROOT)/ExportMap.map
endif
endif
diff --git a/autoconf/ExportMap.map b/autoconf/ExportMap.map
new file mode 100644
index 0000000000..43e310e053
--- /dev/null
+++ b/autoconf/ExportMap.map
@@ -0,0 +1,4 @@
+{
+ global: main;
+ local: *;
+};