aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Unleashed <unledev@gmail.com>2006-07-08 21:39:28 +0000
committerMartin Schlemmer <azarah@gentoo.org>2006-07-08 21:39:28 +0000
commitc446796d93b4ffce025433bf27471beefef7b5a7 (patch)
treeddecf512e7f45f0c9af6445682ebd42f966aaf21 /scripts
parentRemove debug printf() that I missed to remove. (diff)
downloadsandbox-c446796d93b4ffce025433bf27471beefef7b5a7.tar.gz
sandbox-c446796d93b4ffce025433bf27471beefef7b5a7.tar.bz2
sandbox-c446796d93b4ffce025433bf27471beefef7b5a7.zip
Add needed changes to get a working sandbox on FreeBSD
Signed-off-by: Alex Unleashed <unledev@gmail.com> Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/gen_symbol_header.awk9
-rw-r--r--scripts/gen_symbol_version_map.awk9
2 files changed, 18 insertions, 0 deletions
diff --git a/scripts/gen_symbol_header.awk b/scripts/gen_symbol_header.awk
index 21852de..9d66d49 100644
--- a/scripts/gen_symbol_header.awk
+++ b/scripts/gen_symbol_header.awk
@@ -2,6 +2,10 @@ BEGIN {
COUNT = split(ENVIRON["SYMBOLS"], SYMBOLS);
}
+/^ OS\/ABI:/ {
+ ABI = $NF
+}
+
{
# Unstripped libc's have '.symtab' section as well, and
# we should stop processing when we hit that
@@ -47,6 +51,11 @@ BEGIN {
if (VERSIONED_LIBC && !symbol_array[2])
continue;
+ # Blacklist __getcwd on FreeBSD
+ # Unleashed - May 2006
+ if ((symbol_array[1] == "__getcwd") && (ABI == "FreeBSD"))
+ continue;
+
# We have a versioned libc
if (symbol_array[2] && !VERSIONED_LIBC)
VERSIONED_LIBC = 1;
diff --git a/scripts/gen_symbol_version_map.awk b/scripts/gen_symbol_version_map.awk
index 260933f..1423514 100644
--- a/scripts/gen_symbol_version_map.awk
+++ b/scripts/gen_symbol_version_map.awk
@@ -2,6 +2,10 @@ BEGIN {
split(ENVIRON["SYMBOLS"], SYMBOLS);
}
+/^ OS\/ABI:/ {
+ ABI = $NF
+}
+
{
# Unstripped libc's have '.symtab' section as well, and
# we should stop processing when we hit that
@@ -51,6 +55,11 @@ BEGIN {
if (VERSIONED_LIBC && !symbol_array[2])
continue;
+ # Blacklist __getcwd on FreeBSD
+ # Unleashed - May 2006
+ if ((symbol_array[1] == "__getcwd") && (ABI == "FreeBSD"))
+ continue;
+
# Handle non-versioned libc's like uClibc ...
if (!symbol_array[2])
symbol_array[2] = "";