aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gen_symbol_version_map.awk')
-rw-r--r--scripts/gen_symbol_version_map.awk5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/gen_symbol_version_map.awk b/scripts/gen_symbol_version_map.awk
index d4a320d..a8818ee 100644
--- a/scripts/gen_symbol_version_map.awk
+++ b/scripts/gen_symbol_version_map.awk
@@ -12,6 +12,11 @@ BEGIN {
if ($0 ~ "^Symbol (.*)table '.symtab'")
nextfile;
+ # Only check FUNCtion symbols which are not LOCAL, or
+ # do not have DEFAULT visibility
+ if ($4 != "FUNC" || $5 == "LOCAL" || $6 != "DEFAULT")
+ next;
+
for (x in SYMBOLS) {
sym_regex = "^" SYMBOLS[x] "(@|$)";
# On x86, x86_64 and others, $8 is the symbol name, but on