aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2006-07-13 10:23:48 +0000
committerMartin Schlemmer <azarah@gentoo.org>2006-07-13 10:23:48 +0000
commit2c5ef21f288deba39f2fa86ba52d732439fc93ee (patch)
tree5de14bba7c83080f8a2ebe4f363056e90a94a56c /scripts
parentMake sure we do not segfault with invalid mode passed to fopen() and co. Add... (diff)
downloadsandbox-2c5ef21f288deba39f2fa86ba52d732439fc93ee.tar.gz
sandbox-2c5ef21f288deba39f2fa86ba52d732439fc93ee.tar.bz2
sandbox-2c5ef21f288deba39f2fa86ba52d732439fc93ee.zip
Split wrappers out to make modifying easier.
Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/gen_symbol_header.awk14
1 files changed, 12 insertions, 2 deletions
diff --git a/scripts/gen_symbol_header.awk b/scripts/gen_symbol_header.awk
index 9d66d49..444c407 100644
--- a/scripts/gen_symbol_header.awk
+++ b/scripts/gen_symbol_header.awk
@@ -109,8 +109,18 @@ END {
else
printf("#define symver_%s \"%s\"\n", sym_real_name,
symbol_array[2]);
-
- printf("%s_decl(%s);\n", sym_index, sym_real_name);
+
+ printf("#define EXTERN_NAME %s\n", sym_index);
+ printf("#define WRAPPER_NAME %s\n", sym_real_name);
+ printf("#define WRAPPER_TRUE_NAME true_%s\n", sym_real_name);
+ printf("#define WRAPPER_SYMNAME symname_%s\n", sym_real_name);
+ printf("#define WRAPPER_SYMVER symver_%s\n", sym_real_name);
+ printf("#include \"wrapper-decls/%s.c\"\n", sym_index);
+ printf("#undef EXTERN_NAME\n");
+ printf("#undef WRAPPER_NAME\n");
+ printf("#undef WRAPPER_TRUE_NAME\n");
+ printf("#undef WRAPPER_SYMNAME\n");
+ printf("#undef WRAPPER_SYMVER\n");
if (symbol_array[2]) {
# Only add symbol versions for versioned libc's