]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
Move the version script comments before the symbols
authorGuillem Jover <guillem@hadrons.org>
Mon, 17 Apr 2023 22:47:12 +0000 (00:47 +0200)
committerGuillem Jover <guillem@hadrons.org>
Fri, 21 Apr 2023 03:20:27 +0000 (05:20 +0200)
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.

src/libbsd.map

index fb2888f733dc04ca885421e5feb083926a1178d5..6c6123538a370c6d56535b2b5082f66c25ccb94a 100644 (file)
@@ -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;