aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-02-20 01:26:41 -0500
committerMike Frysinger <vapier@gentoo.org>2009-02-20 01:29:37 -0500
commitd11b0104fd8f8c60430e377f62964e05482292f3 (patch)
tree29c4a981f886c97c8dc8da628864ef116869d773 /scripts
parentdo not fail autogen step if autoconf-archive is not installed (diff)
downloadsandbox-d11b0104fd8f8c60430e377f62964e05482292f3.tar.gz
sandbox-d11b0104fd8f8c60430e377f62964e05482292f3.tar.bz2
sandbox-d11b0104fd8f8c60430e377f62964e05482292f3.zip
scripts: disable wrappers for weak __XXX symbols
Since there doesn't seem to be a use for wrapping the __XXX weak symbols, and things aren't using these in normal glibc/uClibc code, stop attempting to handle them. This should work around the FreeBSD infinite recursion issue as well (their getcwd() calls __getcwd(), both of which are public symbols). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/gen_symbol_header.awk6
-rw-r--r--scripts/gen_symbol_version_map.awk6
2 files changed, 12 insertions, 0 deletions
diff --git a/scripts/gen_symbol_header.awk b/scripts/gen_symbol_header.awk
index e7ee2ab..49e4540 100644
--- a/scripts/gen_symbol_header.awk
+++ b/scripts/gen_symbol_header.awk
@@ -43,6 +43,12 @@ BEGIN {
}
}
+ # No apparent need to handle weak __XXX symbols ... so disable
+ # until we have documentation on why ...
+ # If we do re-add this, need to update the `readelf` call in
+ # libsandbox/ to include the -h flag again.
+ continue;
+
sym_regex = "^__" SYMBOLS[x] "(@@|$)";
if (($5 == "WEAK") && ($NF ~ sym_regex)) {
split($NF, symbol_array, /@@/);
diff --git a/scripts/gen_symbol_version_map.awk b/scripts/gen_symbol_version_map.awk
index a8818ee..a0a43c0 100644
--- a/scripts/gen_symbol_version_map.awk
+++ b/scripts/gen_symbol_version_map.awk
@@ -52,6 +52,12 @@ BEGIN {
}
}
+ # No apparent need to handle weak __XXX symbols ... so disable
+ # until we have documentation on why ...
+ # If we do re-add this, need to update the `readelf` call in
+ # libsandbox/ to include the -h flag again.
+ continue;
+
sym_regex = "^__" SYMBOLS[x] "(@@|$)";
if (($5 == "WEAK") && ($NF ~ sym_regex)) {
split($NF, symbol_array, /@@/);