diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-02-05 01:53:36 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-02-05 01:53:36 -0500 |
commit | c68e1f174ef60d3d75b14a7780368598f6cbdaf9 (patch) | |
tree | fce3e408f21e2277887ce4ab9eba3b95cd72a4c1 /scripts | |
parent | pull in siginfo.h when available (diff) | |
download | sandbox-c68e1f174ef60d3d75b14a7780368598f6cbdaf9.tar.gz sandbox-c68e1f174ef60d3d75b14a7780368598f6cbdaf9.tar.bz2 sandbox-c68e1f174ef60d3d75b14a7780368598f6cbdaf9.zip |
gen_symbol_version_map.awk: filter out more symbols
Ignore symbols that are not functions, or do not have the proper binding
and/or visibility for us to override.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/gen_symbol_version_map.awk | 5 |
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 |