Move the version script comments before the symbols When generating the .sym export file from the .map file, we are not stripping these comments that are part of the same line as the symbol, which causes ld(1) implementations to error out. Moving them before the symbols avoids the need to strip them, as we are only keeping actual symbol lines.
diff --git a/src/libbsd.map b/src/libbsd.map
index fb2888f..6c61235 100644
--- a/src/libbsd.map
+++ b/src/libbsd.map
@@ -17,7 +17,8 @@ LIBBSD_0.0 {
heapsort;
humanize_number;
- inet_net_pton; /* XXX: Already provided by glibc, remove. */
+ /* XXX: Already provided by glibc, remove. */
+ inet_net_pton;
getprogname;
setprogname;
@@ -54,7 +55,8 @@ LIBBSD_0.0 {
LIBBSD_0.1 {
strmode;
- __fdnlist; /* Private symbol, but libkvm uses it. */
+ /* Private symbol, but libkvm uses it. */
+ __fdnlist;
nlist;
} LIBBSD_0.0;