From d11b0104fd8f8c60430e377f62964e05482292f3 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 20 Feb 2009 01:26:41 -0500 Subject: 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 --- scripts/gen_symbol_header.awk | 6 ++++++ scripts/gen_symbol_version_map.awk | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'scripts') 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, /@@/); -- cgit v1.2.3-18-g5258