summaryrefslogtreecommitdiff
path: root/generateversionscript.awk
diff options
context:
space:
mode:
authorJan Vorlicek <janvorli@microsoft.com>2015-05-28 00:15:00 (GMT)
committerJan Vorlicek <janvorli@microsoft.com>2015-05-29 09:13:46 (GMT)
commit38b6660f7b98a377f251903ee3d94c57180c90fa (patch)
tree817e6eca45844af4d53b8dfbb8e97baa9e3e0991 /generateversionscript.awk
parent6209916f71faabf021aeaa69804e9ca7b25dc712 (diff)
downloadcoreclr-38b6660f7b98a377f251903ee3d94c57180c90fa.zip
coreclr-38b6660f7b98a377f251903ee3d94c57180c90fa.tar.gz
coreclr-38b6660f7b98a377f251903ee3d94c57180c90fa.tar.bz2
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 0000000..2aa1f4f
--- /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 "};";
+}