Commit 3dad57b1 authored by Adam Jackson's avatar Adam Jackson 🎧

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's avatarAdam Jackson <ajax@redhat.com>
Reviewed-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 386fbbe4
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment