On Thu, 14 Dec 2017, Mark Kettenis wrote:
> Diff below makes sure libutil doesn't export any unwanted symbols. The
> immediate motivation here is to prevent exportong certain libgcc symbols
> on armv7 that cause issues when switching from gcc to clang.
>
> With this diff, only symbols present
${.CURDIR}/Symbols.map
> +
> HDRS=util.h imsg.h
> SRCS=bcrypt_pbkdf.c check_expire.c duid.c getmaxpartitions.c \
> getrawpartition.c login.c \
> Index: lib/libutil/Symbols.map
> ===========
> RCS file: lib/libutil/Symbol
:05 -
@@ -3,6 +3,8 @@
LIB= util
+VERSION_SCRIPT=${.CURDIR}/Symbols.map
+
HDRS= util.h imsg.h
SRCS= bcrypt_pbkdf.c check_expire.c duid.c getmaxpartitions.c \
getrawpartition.c login.c \
Index: lib/libutil/Symbols.