From 4280dfb85d64290c9e99407ed5277ea8d7cd6b3f Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Sun, 4 Jan 2015 17:24:40 +0100 Subject: build: don't export internal symbols Hide internal symbols from the libraries. Before, all symbols were exported, including some that were not meant to be public. 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 --- libnl-3.sym | 6 ----- libnl-cli-3.sym | 5 ---- libnl-genl-3.sym | 5 ---- libnl-idiag-3.sym | 5 ---- libnl-nf-3.sym | 5 ---- libnl-route-3.sym | 78 ------------------------------------------------------- libnl-xfrm-3.sym | 5 ---- 7 files changed, 109 deletions(-) diff --git a/libnl-3.sym b/libnl-3.sym index 88dc96d..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,11 +10,6 @@ global: __trans_list_add; __trans_list_clear; __type2str; - _edata; - _end; - _fini; - _init; - dump_from_ops; nl_addr2str; nl_addr_alloc; nl_addr_alloc_attr; diff --git a/libnl-cli-3.sym b/libnl-cli-3.sym index d96ba32..3d433f6 100644 --- a/libnl-cli-3.sym +++ b/libnl-cli-3.sym @@ -1,10 +1,5 @@ libnl_3 { global: - __bss_start; - _edata; - _end; - _fini; - _init; 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 5897f82..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; diff --git a/libnl-idiag-3.sym b/libnl-idiag-3.sym index 90aac63..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; diff --git a/libnl-nf-3.sym b/libnl-nf-3.sym index 3572b89..190a2fd 100644 --- a/libnl-nf-3.sym +++ b/libnl-nf-3.sym @@ -1,10 +1,5 @@ libnl_3 { global: - __bss_start; - _edata; - _end; - _fini; - _init; ct_obj_ops; exp_obj_ops; log_msg_obj_ops; diff --git a/libnl-route-3.sym b/libnl-route-3.sym index 9f6cae0..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; @@ -68,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; @@ -897,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 7f361cf..3706f33 100644 --- a/libnl-xfrm-3.sym +++ b/libnl-xfrm-3.sym @@ -1,10 +1,5 @@ libnl_3 { global: - __bss_start; - _edata; - _end; - _fini; - _init; xfrmnl_ae_alloc; xfrmnl_ae_build_get_request; xfrmnl_ae_flags2str; -- cgit v0.12