this filters out all retguard symbols, which are no fun to guess. One
recognizes them easily but can get yourself hanged by a single digit!
An earlier version filtering only __retguard symbols was
ok deraadt, jsing
guenther agreed that filtering all double underbar symbols makes sense.
He also suggested to filter out symbols containing several consecutive
digits, but how much fun is guessing libcrypto symbols without all the
X509 goodness?
-/* $OpenBSD: ksyms.c,v 1.12 2019/06/28 13:32:52 deraadt Exp $ */
+/* $OpenBSD: ksyms.c,v 1.13 2021/12/24 23:01:56 tb Exp $ */
/*
* Copyright (c) 2008 Miodrag Vallat.
/* ignore symbols containing dots or dollar signs */
if (strchr(sym, '.') != NULL || strchr(sym, '$') != NULL)
continue;
+ /* ignore all double unberbar symbols */
+ if (strncmp(sym, "__", 2) == 0)
+ continue;
break;
}