aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-10-23 05:49:00 -0400
committerMike Frysinger <vapier@gentoo.org>2021-10-23 18:18:04 -0400
commita07dffb605956bd37a1a0ce0801b7d5233c2f67a (patch)
tree2112b7d0e49c4c0efc7b506e48a26a52b2e6026f /scripts/gen_symbol_header.awk
parentlibsandbox: tweak how undefined symbols are declared (diff)
downloadsandbox-a07dffb605956bd37a1a0ce0801b7d5233c2f67a.tar.gz
sandbox-a07dffb605956bd37a1a0ce0801b7d5233c2f67a.tar.bz2
sandbox-a07dffb605956bd37a1a0ce0801b7d5233c2f67a.zip
libsandbox: extend symbols format to specify diff syscall name
This enables support for 64-bit time_t syscalls where the glibc symbol name is not the same as the kernel syscall name. Closes: https://bugs.gentoo.org/751241 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'scripts/gen_symbol_header.awk')
-rw-r--r--scripts/gen_symbol_header.awk6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/gen_symbol_header.awk b/scripts/gen_symbol_header.awk
index 14e0a99..e669c85 100644
--- a/scripts/gen_symbol_header.awk
+++ b/scripts/gen_symbol_header.awk
@@ -3,9 +3,11 @@ BEGIN {
COUNT = 0;
sym_regex = "";
- while ((getline symbol < SYMBOLS_FILE) > 0) {
- if (symbol ~ /^ *#/ || symbol ~ /^$/)
+ while ((getline line < SYMBOLS_FILE) > 0) {
+ if (line ~ /^ *#/ || line ~ /^$/)
continue;
+ split(line, fields);
+ symbol = fields[1];
SYMBOLS[++COUNT] = symbol;
if (sym_regex)