diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-09 17:59:34 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-09 17:59:34 +0000 |
commit | 98636eb08c5ecc216e18970e11f7021206ac9b04 (patch) | |
tree | dfc70b7c6bf6276776c4e8198457dcf2df1e09fb /networking/libiproute | |
parent | 50dbed95fb7c0a97135b771385160ca26c377a15 (diff) | |
download | busybox-w32-98636eb08c5ecc216e18970e11f7021206ac9b04.tar.gz busybox-w32-98636eb08c5ecc216e18970e11f7021206ac9b04.tar.bz2 busybox-w32-98636eb08c5ecc216e18970e11f7021206ac9b04.zip |
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 @@ | |||
13 | #include <linux/if_link.h> | 13 | #include <linux/if_link.h> |
14 | #endif | 14 | #endif |
15 | 15 | ||
16 | #if __GNUC_PREREQ(4,1) | ||
17 | # pragma GCC visibility push(hidden) | ||
18 | #endif | ||
19 | |||
16 | extern char **ip_parse_common_args(char **argv); | 20 | extern char **ip_parse_common_args(char **argv); |
17 | extern int print_neigh(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg); | 21 | extern int print_neigh(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg); |
18 | extern int ipaddr_list_or_flush(char **argv, int flush); | 22 | extern int ipaddr_list_or_flush(char **argv, int flush); |
@@ -29,4 +33,9 @@ extern int do_iplink(char **argv); | |||
29 | extern int do_ipmonitor(char **argv); | 33 | extern int do_ipmonitor(char **argv); |
30 | extern int do_multiaddr(char **argv); | 34 | extern int do_multiaddr(char **argv); |
31 | extern int do_multiroute(char **argv); | 35 | extern int do_multiroute(char **argv); |
36 | |||
37 | #if __GNUC_PREREQ(4,1) | ||
38 | # pragma GCC visibility pop | ||
39 | #endif | ||
40 | |||
32 | #endif /* ip_common.h */ | 41 | #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 @@ | |||
8 | #include <linux/netlink.h> | 8 | #include <linux/netlink.h> |
9 | #include <linux/rtnetlink.h> | 9 | #include <linux/rtnetlink.h> |
10 | 10 | ||
11 | |||
12 | #if __GNUC_PREREQ(4,1) | ||
13 | # pragma GCC visibility push(hidden) | ||
14 | #endif | ||
15 | |||
11 | struct rtnl_handle | 16 | struct rtnl_handle |
12 | { | 17 | { |
13 | int fd; | 18 | int fd; |
@@ -43,4 +48,8 @@ extern int rta_addattr_l(struct rtattr *rta, int maxlen, int type, void *data, i | |||
43 | 48 | ||
44 | extern int parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len); | 49 | extern int parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len); |
45 | 50 | ||
51 | #if __GNUC_PREREQ(4,1) | ||
52 | # pragma GCC visibility pop | ||
53 | #endif | ||
54 | |||
46 | #endif /* __LIBNETLINK_H__ */ | 55 | #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 @@ | |||
2 | #ifndef __LL_MAP_H__ | 2 | #ifndef __LL_MAP_H__ |
3 | #define __LL_MAP_H__ 1 | 3 | #define __LL_MAP_H__ 1 |
4 | 4 | ||
5 | #if __GNUC_PREREQ(4,1) | ||
6 | # pragma GCC visibility push(hidden) | ||
7 | #endif | ||
8 | |||
5 | int ll_remember_index(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg); | 9 | int ll_remember_index(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg); |
6 | int ll_init_map(struct rtnl_handle *rth); | 10 | int ll_init_map(struct rtnl_handle *rth); |
7 | int xll_name_to_index(const char *const name); | 11 | int xll_name_to_index(const char *const name); |
@@ -10,4 +14,8 @@ const char *ll_idx_n2a(int idx, char *buf); | |||
10 | /* int ll_index_to_type(int idx); */ | 14 | /* int ll_index_to_type(int idx); */ |
11 | unsigned ll_index_to_flags(int idx); | 15 | unsigned ll_index_to_flags(int idx); |
12 | 16 | ||
17 | #if __GNUC_PREREQ(4,1) | ||
18 | # pragma GCC visibility pop | ||
19 | #endif | ||
20 | |||
13 | #endif /* __LL_MAP_H__ */ | 21 | #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 @@ | |||
2 | #ifndef RT_NAMES_H_ | 2 | #ifndef RT_NAMES_H_ |
3 | #define RT_NAMES_H_ 1 | 3 | #define RT_NAMES_H_ 1 |
4 | 4 | ||
5 | #include <stdint.h> | 5 | #if __GNUC_PREREQ(4,1) |
6 | # pragma GCC visibility push(hidden) | ||
7 | #endif | ||
6 | 8 | ||
7 | extern const char* rtnl_rtprot_n2a(int id, char *buf, int len); | 9 | extern const char* rtnl_rtprot_n2a(int id, char *buf, int len); |
8 | extern const char* rtnl_rtscope_n2a(int id, char *buf, int len); | 10 | 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); | |||
27 | extern int ll_proto_a2n(unsigned short *id, char *buf); | 29 | extern int ll_proto_a2n(unsigned short *id, char *buf); |
28 | #endif | 30 | #endif |
29 | 31 | ||
32 | #if __GNUC_PREREQ(4,1) | ||
33 | # pragma GCC visibility pop | ||
34 | #endif | ||
35 | |||
30 | #endif | 36 | #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 @@ | |||
2 | #ifndef __RTM_MAP_H__ | 2 | #ifndef __RTM_MAP_H__ |
3 | #define __RTM_MAP_H__ 1 | 3 | #define __RTM_MAP_H__ 1 |
4 | 4 | ||
5 | #if __GNUC_PREREQ(4,1) | ||
6 | # pragma GCC visibility push(hidden) | ||
7 | #endif | ||
8 | |||
5 | const char *rtnl_rtntype_n2a(int id, char *buf, int len); | 9 | const char *rtnl_rtntype_n2a(int id, char *buf, int len); |
6 | int rtnl_rtntype_a2n(int *id, char *arg); | 10 | int rtnl_rtntype_a2n(int *id, char *arg); |
7 | 11 | ||
8 | int get_rt_realms(uint32_t *realms, char *arg); | 12 | int get_rt_realms(uint32_t *realms, char *arg); |
9 | 13 | ||
14 | #if __GNUC_PREREQ(4,1) | ||
15 | # pragma GCC visibility pop | ||
16 | #endif | ||
10 | 17 | ||
11 | #endif /* __RTM_MAP_H__ */ | 18 | #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 @@ | |||
6 | #include "ll_map.h" | 6 | #include "ll_map.h" |
7 | #include "rtm_map.h" | 7 | #include "rtm_map.h" |
8 | 8 | ||
9 | #if __GNUC_PREREQ(4,1) | ||
10 | # pragma GCC visibility push(hidden) | ||
11 | #endif | ||
12 | |||
9 | extern family_t preferred_family; | 13 | extern family_t preferred_family; |
10 | extern smallint show_stats; /* UNUSED */ | 14 | extern smallint show_stats; /* UNUSED */ |
11 | extern smallint show_details; /* UNUSED */ | 15 | extern smallint show_details; /* UNUSED */ |
@@ -84,4 +88,8 @@ int dnet_pton(int af, const char *src, void *addr); | |||
84 | const char *ipx_ntop(int af, const void *addr, char *str, size_t len); | 88 | const char *ipx_ntop(int af, const void *addr, char *str, size_t len); |
85 | int ipx_pton(int af, const char *src, void *addr); | 89 | int ipx_pton(int af, const char *src, void *addr); |
86 | 90 | ||
91 | #if __GNUC_PREREQ(4,1) | ||
92 | # pragma GCC visibility pop | ||
93 | #endif | ||
94 | |||
87 | #endif /* __UTILS_H__ */ | 95 | #endif /* __UTILS_H__ */ |