From 3dad57b121fdf001e75fffa7e3007a9a0a154f67 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 16 Feb 2017 14:00:03 -0500 Subject: [PATCH] sdksyms: Tighten up the symbols we add to the magic table The code as written would match anything declared extern. _X_EXPORT is what we really mean here. That's a macro, so check for what it expands to and skip if not found. Signed-off-by: Adam Jackson Reviewed-by: Peter Hutterer --- hw/xfree86/sdksyms.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/xfree86/sdksyms.sh b/hw/xfree86/sdksyms.sh index cf268928f..10909d083 100755 --- a/hw/xfree86/sdksyms.sh +++ b/hw/xfree86/sdksyms.sh @@ -343,6 +343,10 @@ BEGIN { n = 1; } + # only match _X_EXPORT + if ($n !~ /^(__attribute__..visibility..default|__global)/) + next; + # skip attribute, if any while ($n ~ /^(__attribute__|__global)/ || # skip modifiers, if any