From nobody Fri Apr 19 00:00:41 2024 X-Original-To: freebsd-arch@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VLFCd3LFtz5HMY4 for ; Fri, 19 Apr 2024 00:00:45 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4VLFCd27tFz4pf7; Fri, 19 Apr 2024 00:00:44 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Authentication-Results: mx1.freebsd.org; none Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.17.1/8.17.1) with ESMTP id 43J00g1m028650; Thu, 18 Apr 2024 17:00:42 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) DKIM-Filter: OpenDKIM Filter v2.10.3 troutmask.apl.washington.edu 43J00g1m028650 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=troutmask.apl.washington.edu; s=troutmask; t=1713484842; bh=MKqBbeTb5KBCJGOjv3a9jm49YavHaQFKkpilLMMTmvg=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=kXZHD/MYgdQDG8iDFMsg4B3yYy+yzxlPE5i6bJYT7LcAlFe3YGSHt1YFs5x0YSppe Ncw66jxWceDipdD8AOhKonQmLw1b0uGnsxLHnMoWIuQpANKzk9It/3sNIWcNAbfRX1 rzkJXEosoAGxlC7auuqyJ7vxdZUTTgdTgX45VB/BMeyWXtuTc8W3GB/0OOpsrAvFTa uf2egohuUEC2PJBnU+y89m5f36hrT2gDsciFlkchFL9bDc3AfCmxetq/MwVFBbCueD C1l0Oplyq1O7aJvvYs1xdDt59cN4gj4rfXRqC3WZRuOBVQGaXgPKHYev1A8rieXweP +RzmP85T47V7w== Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.17.1/8.17.1/Submit) id 43J00fJ4028649; Thu, 18 Apr 2024 17:00:41 -0700 (PDT) (envelope-from sgk) Date: Thu, 18 Apr 2024 17:00:41 -0700 From: Steve Kargl To: Brooks Davis Cc: freebsd-arch@freebsd.org, Michael Dexter Subject: Re: RFC: linking with --no-undefined-version Message-ID: Reply-To: sgk@troutmask.apl.washington.edu References: List-Id: Discussion related to FreeBSD architecture List-Archive: https://lists.freebsd.org/archives/freebsd-arch List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arch@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:73, ipnet:128.95.0.0/16, country:US] X-Rspamd-Queue-Id: 4VLFCd27tFz4pf7 On Thu, Apr 18, 2024 at 11:49:48PM +0000, Brooks Davis wrote: > On Thu, Apr 18, 2024 at 04:44:31PM -0700, Steve Kargl wrote: > > On Thu, Apr 18, 2024 at 11:35:19PM +0000, Brooks Davis wrote: > > > As of LLVM 16, lld default to --no-undefined-version which means that if > > > a symbol is listed in the symbol version map it must be present or lld > > > will fail to link. This is good because it prevents that accidental loss > > > of symbols which breaks our ABI compatibility. Unfortunately, it's > > > somewhat complicating because our symbol version maps may vary > > > per-architecture or based on options. As a result we added > > > --undefined-version to LDFLAGS. > > > > > > > Just to be clear, does this extend into /usr/ports? I only have 3020 *.so > > in /usr/local/lib. I can image that some software package may have > > missing symbols. > > Just the base system and things that use bmake infrastructure from base > (e.g., programs that got kicked out of base like ftpd), but dim@ already > fixed lots of symbol files in ports so I don't expect major issues. > Thanks for the clarification. Looks like a beneficial change. PS: Thanks for the work on libsys. -- Steve