From 9b49a5ed8551e46892af3f676e5d96d21b540e3c Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 11 Oct 2007 10:05:36 +0000 Subject: add -fvisibility=hidden to CC flags, mark XXX_main functions EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so --- selinux/chcon.c | 2 +- selinux/getenforce.c | 2 +- selinux/getsebool.c | 2 +- selinux/load_policy.c | 2 +- selinux/matchpathcon.c | 2 +- selinux/runcon.c | 2 +- selinux/selinuxenabled.c | 2 +- selinux/setenforce.c | 2 +- selinux/setfiles.c | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) (limited to 'selinux') diff --git a/selinux/chcon.c b/selinux/chcon.c index 3609880cb..f00e24278 100644 --- a/selinux/chcon.c +++ b/selinux/chcon.c @@ -120,7 +120,7 @@ static const char chcon_longopts[] ALIGN1 = ; #endif -int chcon_main(int argc, char **argv); +int chcon_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int chcon_main(int argc, char **argv) { char *reference_file; diff --git a/selinux/getenforce.c b/selinux/getenforce.c index 62b42637c..e11e78e31 100644 --- a/selinux/getenforce.c +++ b/selinux/getenforce.c @@ -8,7 +8,7 @@ #include "libbb.h" -int getenforce_main(int argc, char **argv); +int getenforce_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int getenforce_main(int argc, char **argv) { int rc; diff --git a/selinux/getsebool.c b/selinux/getsebool.c index 598a51cc0..ea080d483 100644 --- a/selinux/getsebool.c +++ b/selinux/getsebool.c @@ -8,7 +8,7 @@ #include "libbb.h" -int getsebool_main(int argc, char **argv); +int getsebool_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int getsebool_main(int argc, char **argv) { int i, rc = 0, active, pending, len = 0; diff --git a/selinux/load_policy.c b/selinux/load_policy.c index add5c662c..f9aa49d19 100644 --- a/selinux/load_policy.c +++ b/selinux/load_policy.c @@ -4,7 +4,7 @@ */ #include "libbb.h" -int load_policy_main(int argc, char **argv); +int load_policy_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int load_policy_main(int argc, char **argv) { int rc; diff --git a/selinux/matchpathcon.c b/selinux/matchpathcon.c index bb7099ea6..6de68bceb 100644 --- a/selinux/matchpathcon.c +++ b/selinux/matchpathcon.c @@ -29,7 +29,7 @@ static int print_matchpathcon(char *path, int noprint) #define OPT_PREFIX (1<<3) /* -p */ #define OPT_VERIFY (1<<4) /* -V */ -int matchpathcon_main(int argc, char **argv); +int matchpathcon_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int matchpathcon_main(int argc, char **argv) { int error = 0; diff --git a/selinux/runcon.c b/selinux/runcon.c index 37ac5d18f..89a4b0555 100644 --- a/selinux/runcon.c +++ b/selinux/runcon.c @@ -87,7 +87,7 @@ static const char runcon_longopts[] ALIGN1 = #define OPTS_HELP (1<<5) /* h */ #define OPTS_CONTEXT_COMPONENT (OPTS_ROLE | OPTS_TYPE | OPTS_USER | OPTS_RANGE) -int runcon_main(int argc, char **argv); +int runcon_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int runcon_main(int argc, char **argv) { char *role = NULL; diff --git a/selinux/selinuxenabled.c b/selinux/selinuxenabled.c index 8a9c7cd02..114d2b6e2 100644 --- a/selinux/selinuxenabled.c +++ b/selinux/selinuxenabled.c @@ -7,7 +7,7 @@ */ #include "libbb.h" -int selinuxenabled_main(int argc, char **argv); +int selinuxenabled_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int selinuxenabled_main(int argc, char **argv) { return !is_selinux_enabled(); diff --git a/selinux/setenforce.c b/selinux/setenforce.c index 59b1b0fca..198324c91 100644 --- a/selinux/setenforce.c +++ b/selinux/setenforce.c @@ -19,7 +19,7 @@ static const char *const setenforce_cmd[] = { NULL, }; -int setenforce_main(int argc, char **argv); +int setenforce_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int setenforce_main(int argc, char **argv) { int i, rc; diff --git a/selinux/setfiles.c b/selinux/setfiles.c index 5ae482e65..905333f94 100644 --- a/selinux/setfiles.c +++ b/selinux/setfiles.c @@ -486,7 +486,7 @@ static int process_one(char *name) goto out; } -int setfiles_main(int argc, char **argv); +int setfiles_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int setfiles_main(int argc, char **argv) { struct stat sb; -- cgit v1.2.3