aboutsummaryrefslogtreecommitdiff
path: root/version_script.ver
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2016-05-20 12:01:18 +0100
committerRichard van der Hoff <richard@matrix.org>2016-05-20 15:15:40 +0100
commit488567a45f95cefd258f5f1a4cdf00c8848576d9 (patch)
tree4f0953732c290f5e55251cf2256e23c8d6d6eaa4 /version_script.ver
parentd4c8aae803a1fad46ded6e82a64575d9b6e40a7e (diff)
Use a version script to restrict symbols in the .so
We want to stop aes_* and sha_* functions leaking out of our .so, as well as internal _olm_* symbols. This also means we need to link the unit tests against the objects. Possibly we should distinguish between unit tests and integration tests.
Diffstat (limited to 'version_script.ver')
-rw-r--r--version_script.ver9
1 files changed, 9 insertions, 0 deletions
diff --git a/version_script.ver b/version_script.ver
new file mode 100644
index 0000000..3aec5f6
--- /dev/null
+++ b/version_script.ver
@@ -0,0 +1,9 @@
+# this is a 'version script' for the linker which tells it to only export
+# symbols starting 'olm_'.
+
+{
+ global:
+ olm_*;
+ local:
+ *;
+};