diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-09 21:59:34 +0400 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-09 21:59:34 +0400 |
commit | 98636eb08c5ecc216e18970e11f7021206ac9b04 (patch) | |
tree | dfc70b7c6bf6276776c4e8198457dcf2df1e09fb /networking/libiproute | |
parent | 50dbed95fb7c0a97135b771385160ca26c377a15 (diff) |
Use intra-DSO calls when we build libbusybox. No-op for normal build.
This was Bernhard Fischer' idea.
text data bss dec hex filename
773549 7781 9740 791070 c121e busybox.t7/0_lib/libbusybox.so.1.11.0.svn_unstripped
769683 7397 9740 786820 c0184 busybox.t9t/0_lib/libbusybox.so.1.11.0.svn_unstripped
Diffstat (limited to 'networking/libiproute')
-rw-r--r-- | networking/libiproute/ip_common.h | 9 | ||||
-rw-r--r-- | networking/libiproute/libnetlink.h | 9 | ||||
-rw-r--r-- | networking/libiproute/ll_map.h | 8 | ||||
-rw-r--r-- | networking/libiproute/rt_names.h | 8 | ||||
-rw-r--r-- | networking/libiproute/rtm_map.h | 7 | ||||
-rw-r--r-- | networking/libiproute/utils.h | 8 |
6 files changed, 48 insertions, 1 deletions
diff --git a/networking/libiproute/ip_common.h b/networking/libiproute/ip_common.h index c04735608..346d0b96c 100644 --- a/networking/libiproute/ip_common.h +++ b/networking/libiproute/ip_common.h @@ -13,6 +13,10 @@ #include <linux/if_link.h> #endif +#if __GNUC_PREREQ(4,1) +# pragma GCC visibility push(hidden) +#endif + extern char **ip_parse_common_args(char **argv); extern int print_neigh(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg); extern int ipaddr_list_or_flush(char **argv, int flush); @@ -29,4 +33,9 @@ extern int do_iplink(char **argv); extern int do_ipmonitor(char **argv); extern int do_multiaddr(char **argv); extern int do_multiroute(char **argv); + +#if __GNUC_PREREQ(4,1) +# pragma GCC visibility pop +#endif + #endif /* ip_common.h */ diff --git a/networking/libiproute/libnetlink.h b/networking/libiproute/libnetlink.h index e149f52bf..7507c52e7 100644 --- a/networking/libiproute/libnetlink.h +++ b/networking/libiproute/libnetlink.h @@ -8,6 +8,11 @@ #include <linux/netlink.h> #include <linux/rtnetlink.h> + +#if __GNUC_PREREQ(4,1) +# pragma GCC visibility push(hidden) +#endif + struct rtnl_handle { int fd; @@ -43,4 +48,8 @@ extern int rta_addattr_l(struct rtattr *rta, int maxlen, int type, void *data, i extern int parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len); +#if __GNUC_PREREQ(4,1) +# pragma GCC visibility pop +#endif + #endif /* __LIBNETLINK_H__ */ diff --git a/networking/libiproute/ll_map.h b/networking/libiproute/ll_map.h index 55e2cf393..c4257894c 100644 --- a/networking/libiproute/ll_map.h +++ b/networking/libiproute/ll_map.h @@ -2,6 +2,10 @@ #ifndef __LL_MAP_H__ #define __LL_MAP_H__ 1 +#if __GNUC_PREREQ(4,1) +# pragma GCC visibility push(hidden) +#endif + int ll_remember_index(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg); int ll_init_map(struct rtnl_handle *rth); int xll_name_to_index(const char *const name); @@ -10,4 +14,8 @@ const char *ll_idx_n2a(int idx, char *buf); /* int ll_index_to_type(int idx); */ unsigned ll_index_to_flags(int idx); +#if __GNUC_PREREQ(4,1) +# pragma GCC visibility pop +#endif + #endif /* __LL_MAP_H__ */ diff --git a/networking/libiproute/rt_names.h b/networking/libiproute/rt_names.h index f560f248b..60baa3f16 100644 --- a/networking/libiproute/rt_names.h +++ b/networking/libiproute/rt_names.h @@ -2,7 +2,9 @@ #ifndef RT_NAMES_H_ #define RT_NAMES_H_ 1 -#include <stdint.h> +#if __GNUC_PREREQ(4,1) +# pragma GCC visibility push(hidden) +#endif extern const char* rtnl_rtprot_n2a(int id, char *buf, int len); extern const char* rtnl_rtscope_n2a(int id, char *buf, int len); @@ -27,4 +29,8 @@ extern const char* ll_proto_n2a(unsigned short id, char *buf, int len); extern int ll_proto_a2n(unsigned short *id, char *buf); #endif +#if __GNUC_PREREQ(4,1) +# pragma GCC visibility pop +#endif + #endif diff --git a/networking/libiproute/rtm_map.h b/networking/libiproute/rtm_map.h index cbbcc214d..02fa77e42 100644 --- a/networking/libiproute/rtm_map.h +++ b/networking/libiproute/rtm_map.h @@ -2,10 +2,17 @@ #ifndef __RTM_MAP_H__ #define __RTM_MAP_H__ 1 +#if __GNUC_PREREQ(4,1) +# pragma GCC visibility push(hidden) +#endif + const char *rtnl_rtntype_n2a(int id, char *buf, int len); int rtnl_rtntype_a2n(int *id, char *arg); int get_rt_realms(uint32_t *realms, char *arg); +#if __GNUC_PREREQ(4,1) +# pragma GCC visibility pop +#endif #endif /* __RTM_MAP_H__ */ diff --git a/networking/libiproute/utils.h b/networking/libiproute/utils.h index 50a6c2026..b67619d20 100644 --- a/networking/libiproute/utils.h +++ b/networking/libiproute/utils.h @@ -6,6 +6,10 @@ #include "ll_map.h" #include "rtm_map.h" +#if __GNUC_PREREQ(4,1) +# pragma GCC visibility push(hidden) +#endif + extern family_t preferred_family; extern smallint show_stats; /* UNUSED */ extern smallint show_details; /* UNUSED */ @@ -84,4 +88,8 @@ int dnet_pton(int af, const char *src, void *addr); const char *ipx_ntop(int af, const void *addr, char *str, size_t len); int ipx_pton(int af, const char *src, void *addr); +#if __GNUC_PREREQ(4,1) +# pragma GCC visibility pop +#endif + #endif /* __UTILS_H__ */ |