Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add linker version script to hide internal syms

  • Loading branch information...
commit f7a33cd3bb2b1a386de286032fa19e2f491e99b5 1 parent c5460ca
@bwalex authored
Showing with 16 additions and 1 deletion.
  1. +3 −1 Makefile
  2. +13 −0 tcplay.map
View
4 Makefile
@@ -8,6 +8,8 @@ all:
gcc -O0 $(WARNFLAGS) -g main.c tcplay.c crc32.c safe_mem.c io.c crypto-dev.c hdr.c -o tc-play -lcrypto -ldevmapper -lprop -lutil
lib:
gcc $(WARNFLAGS) -c -fPIC -O0 -Wall -g tcplay_api.c tcplay.c crc32.c safe_mem.c io.c crypto-dev.c hdr.c
- gcc -shared -Wl -o libtcplay.so tcplay_api.o tcplay.o crc32.o safe_mem.o io.o crypto-dev.o hdr.o
+ gcc -shared -Wl,-version-script=tcplay.map -o libtcplay.so tcplay_api.o tcplay.o crc32.o safe_mem.o io.o crypto-dev.o hdr.o
+test:
+ gcc -O0 -g -L. -I. tcplay_api_test.c -ltcplay -lcrypto -ldevmapper -lprop -lutil
clean:
rm -f tc-play tc-play.core *.o ktrace.out
View
13 tcplay.map
@@ -0,0 +1,13 @@
+{
+global:
+ tc_api_init;
+ tc_api_uninit;
+ tc_api_create_volume;
+ tc_api_map_volume;
+ tc_api_check_cipher;
+ tc_api_check_prf_hash;
+ tc_api_get_error_msg;
+ tc_api_get_summary;
+local:
+ *;
+};
Please sign in to comment.
Something went wrong with that request. Please try again.