summaryrefslogtreecommitdiff
path: root/generateversionscript.awk
diff options
context:
space:
mode:
authorJan Vorlicek <janvorli@microsoft.com>2015-05-28 02:15:00 +0200
committerJan Vorlicek <janvorli@microsoft.com>2015-05-29 11:13:46 +0200
commit38b6660f7b98a377f251903ee3d94c57180c90fa (patch)
tree817e6eca45844af4d53b8dfbb8e97baa9e3e0991 /generateversionscript.awk
parent6209916f71faabf021aeaa69804e9ca7b25dc712 (diff)
downloadcoreclr-38b6660f7b98a377f251903ee3d94c57180c90fa.tar.gz
coreclr-38b6660f7b98a377f251903ee3d94c57180c90fa.tar.bz2
coreclr-38b6660f7b98a377f251903ee3d94c57180c90fa.zip
Limit the libcoreclr.so exports to the required minimum
This change limits the libcoreclr.so exports on Unix to functions that are PInvoked by the managed mscorlib / corefx and the DllMain, CoreDllMain and ExecuteAssembly.
Diffstat (limited to 'generateversionscript.awk')
-rw-r--r--generateversionscript.awk14
1 files changed, 14 insertions, 0 deletions
diff --git a/generateversionscript.awk b/generateversionscript.awk
new file mode 100644
index 0000000000..2aa1f4f0a2
--- /dev/null
+++ b/generateversionscript.awk
@@ -0,0 +1,14 @@
+BEGIN {
+ print "V1.0 {";
+ print " global:";
+}
+{
+ # Remove the CR character in case the sources are mapped from
+ # a Windows share and contain CRLF line endings
+ gsub(/\r/,"", $0);
+ print " " $0 ";";
+}
+END {
+ print " local: *;"
+ print "};";
+}