summaryrefslogtreecommitdiff
path: root/generateexportedsymbols.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 /generateexportedsymbols.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 'generateexportedsymbols.awk')
-rw-r--r--generateexportedsymbols.awk6
1 files changed, 6 insertions, 0 deletions
diff --git a/generateexportedsymbols.awk b/generateexportedsymbols.awk
new file mode 100644
index 0000000000..19312c381e
--- /dev/null
+++ b/generateexportedsymbols.awk
@@ -0,0 +1,6 @@
+{
+ # Remove the CR character in case the sources are mapped from
+ # a Windows share and contain CRLF line endings
+ gsub(/\r/,"", $0);
+ print "_" $0;
+}