From c12068179c252911af95368933605b2cfc5da2d2 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Tue, 18 Apr 2023 00:47:12 +0200 Subject: [PATCH] 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. --- src/libbsd.map | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 2.47.3