aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gen_symbol_version_map.awk')
-rw-r--r--scripts/gen_symbol_version_map.awk6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/gen_symbol_version_map.awk b/scripts/gen_symbol_version_map.awk
index cd0aa84..661cb1d 100644
--- a/scripts/gen_symbol_version_map.awk
+++ b/scripts/gen_symbol_version_map.awk
@@ -1,9 +1,11 @@
# Read the symbols list and create regexs to use for processing readelf output.
BEGIN {
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];
if (sym_regex)
sym_regex = sym_regex "|";