diff --git a/Makefile.rules b/Makefile.rules index 388372e0a9a..11d295ceb67 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 00000000000..43e310e053e --- /dev/null +++ b/autoconf/ExportMap.map @@ -0,0 +1,4 @@ +{ + global: main; + local: *; +};