[PATCH 5/5] build: don't export internal symbols

Thomas Haller thaller at redhat.com
Sun Jan 4 08:24:40 PST 2015


Hide internal symbols from the libraries.
Before, all symbols were exported, including some that were
not meant to be public properties. Hide them now.

This is an ABI break, but nobody was supposed to use these symbols.
Hence it seems acceptable to hide them now.

Still don't hide any symbols that are internal, but wrongly exported
in public header files (such as @ct_obj_ops).

Signed-off-by: Thomas Haller <thaller at redhat.com>
---
 libnl-3.sym       |  7 -----
 libnl-cli-3.sym   |  6 -----
 libnl-genl-3.sym  |  6 -----
 libnl-idiag-3.sym |  6 -----
 libnl-nf-3.sym    |  6 -----
 libnl-route-3.sym | 79 -------------------------------------------------------
 libnl-xfrm-3.sym  |  6 -----
 7 files changed, 116 deletions(-)

diff --git a/libnl-3.sym b/libnl-3.sym
index 8425cc2..d84a54b 100644
--- a/libnl-3.sym
+++ b/libnl-3.sym
@@ -1,6 +1,5 @@
 libnl_3 {
 global:
-	__bss_start;
 	__flags2str;
 	__list_str2type;
 	__list_type2str;
@@ -11,12 +10,6 @@ global:
 	__trans_list_add;
 	__trans_list_clear;
 	__type2str;
-	_edata;
-	_end;
-	_fini;
-	_init;
-	dump_from_ops;
-	libnl_3;
 	nl_addr2str;
 	nl_addr_alloc;
 	nl_addr_alloc_attr;
diff --git a/libnl-cli-3.sym b/libnl-cli-3.sym
index 860c06f..3d433f6 100644
--- a/libnl-cli-3.sym
+++ b/libnl-cli-3.sym
@@ -1,11 +1,5 @@
 libnl_3 {
 global:
-	__bss_start;
-	_edata;
-	_end;
-	_fini;
-	_init;
-	libnl_3;
 	nl_cli_addr_alloc;
 	nl_cli_addr_parse;
 	nl_cli_addr_parse_broadcast;
diff --git a/libnl-genl-3.sym b/libnl-genl-3.sym
index 91c672e..291f83f 100644
--- a/libnl-genl-3.sym
+++ b/libnl-genl-3.sym
@@ -1,10 +1,5 @@
 libnl_3 {
 global:
-	__bss_start;
-	_edata;
-	_end;
-	_fini;
-	_init;
 	genl_connect;
 	genl_ctrl_alloc_cache;
 	genl_ctrl_resolve;
@@ -48,7 +43,6 @@ global:
 	genlmsg_user_hdr;
 	genlmsg_valid_hdr;
 	genlmsg_validate;
-	libnl_3;
 local:
 	*;
 };
diff --git a/libnl-idiag-3.sym b/libnl-idiag-3.sym
index 0bbfee2..9fb5095 100644
--- a/libnl-idiag-3.sym
+++ b/libnl-idiag-3.sym
@@ -1,10 +1,5 @@
 libnl_3 {
 global:
-	__bss_start;
-	_edata;
-	_end;
-	_fini;
-	_init;
 	idiagnl_attrs2str;
 	idiagnl_connect;
 	idiagnl_exts2str;
@@ -107,7 +102,6 @@ global:
 	idiagnl_vegasinfo_set_minrtt;
 	idiagnl_vegasinfo_set_rtt;
 	idiagnl_vegasinfo_set_rttcnt;
-	libnl_3;
 local:
 	*;
 };
diff --git a/libnl-nf-3.sym b/libnl-nf-3.sym
index fb1331c..190a2fd 100644
--- a/libnl-nf-3.sym
+++ b/libnl-nf-3.sym
@@ -1,13 +1,7 @@
 libnl_3 {
 global:
-	__bss_start;
-	_edata;
-	_end;
-	_fini;
-	_init;
 	ct_obj_ops;
 	exp_obj_ops;
-	libnl_3;
 	log_msg_obj_ops;
 	log_obj_ops;
 	nfnl_connect;
diff --git a/libnl-route-3.sym b/libnl-route-3.sym
index 94d6329..7ce2e38 100644
--- a/libnl-route-3.sym
+++ b/libnl-route-3.sym
@@ -1,44 +1,5 @@
 libnl_3 {
 global:
-	__bss_start;
-	_edata;
-	_end;
-	_fini;
-	_init;
-	ematch__create_buffer;
-	ematch__delete_buffer;
-	ematch__flush_buffer;
-	ematch__scan_buffer;
-	ematch__scan_bytes;
-	ematch__scan_string;
-	ematch__switch_to_buffer;
-	ematch_alloc;
-	ematch_free;
-	ematch_get_column;
-	ematch_get_debug;
-	ematch_get_extra;
-	ematch_get_in;
-	ematch_get_leng;
-	ematch_get_lineno;
-	ematch_get_lval;
-	ematch_get_out;
-	ematch_get_text;
-	ematch_lex;
-	ematch_lex_destroy;
-	ematch_lex_init;
-	ematch_lex_init_extra;
-	ematch_parse;
-	ematch_pop_buffer_state;
-	ematch_push_buffer_state;
-	ematch_realloc;
-	ematch_restart;
-	ematch_set_column;
-	ematch_set_debug;
-	ematch_set_extra;
-	ematch_set_in;
-	ematch_set_lineno;
-	ematch_set_lval;
-	ematch_set_out;
 	flnl_lookup;
 	flnl_lookup_build_request;
 	flnl_request_alloc;
@@ -61,7 +22,6 @@ global:
 	flnl_result_get_table_id;
 	flnl_result_get_type;
 	flnl_result_put;
-	libnl_3;
 	nl_ovl_strategy2str;
 	nl_police2str;
 	nl_rtgen_request;
@@ -69,42 +29,6 @@ global:
 	nl_str2ovl_strategy;
 	nl_str2police;
 	nl_str2rtntype;
-	pktloc__create_buffer;
-	pktloc__delete_buffer;
-	pktloc__flush_buffer;
-	pktloc__scan_buffer;
-	pktloc__scan_bytes;
-	pktloc__scan_string;
-	pktloc__switch_to_buffer;
-	pktloc_alloc;
-	pktloc_free;
-	pktloc_get_column;
-	pktloc_get_debug;
-	pktloc_get_extra;
-	pktloc_get_in;
-	pktloc_get_leng;
-	pktloc_get_lineno;
-	pktloc_get_lloc;
-	pktloc_get_lval;
-	pktloc_get_out;
-	pktloc_get_text;
-	pktloc_lex;
-	pktloc_lex_destroy;
-	pktloc_lex_init;
-	pktloc_lex_init_extra;
-	pktloc_parse;
-	pktloc_pop_buffer_state;
-	pktloc_push_buffer_state;
-	pktloc_realloc;
-	pktloc_restart;
-	pktloc_set_column;
-	pktloc_set_debug;
-	pktloc_set_extra;
-	pktloc_set_in;
-	pktloc_set_lineno;
-	pktloc_set_lloc;
-	pktloc_set_lval;
-	pktloc_set_out;
 	route_obj_ops;
 	rtln_link_policy;
 	rtnl_act_add;
@@ -898,9 +822,6 @@ global:
 	rtnl_u32_set_hashmask;
 	rtnl_u32_set_hashtable;
 	rtnl_u32_set_link;
-	tc_groups;
-	tca_parse;
-	tca_set_kind;
 local:
 	*;
 };
diff --git a/libnl-xfrm-3.sym b/libnl-xfrm-3.sym
index 30349b5..3706f33 100644
--- a/libnl-xfrm-3.sym
+++ b/libnl-xfrm-3.sym
@@ -1,11 +1,5 @@
 libnl_3 {
 global:
-	__bss_start;
-	_edata;
-	_end;
-	_fini;
-	_init;
-	libnl_3;
 	xfrmnl_ae_alloc;
 	xfrmnl_ae_build_get_request;
 	xfrmnl_ae_flags2str;
-- 
1.9.3




More information about the libnl mailing list