🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.netbsd.tech.toolchain
Article #5

debug info stripped from shared libs?

#5
From: Valery Ushakov
Date: Tue, 10 Nov 2026 10:56
20 lines
1774 bytes
I needed to build some in-tree code with debugging (DBG='-g -O0').
The result is internally inconsistent:

$ file xcb_in.*o
xcb_in.o:    ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), with debug_info, not stripped
xcb_in.pico: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped
xcb_in.po:   ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), with debug_info, not stripped

Note how the static library has the debug info, but the dynamic
library has lost it b/c of the `objcopy -x` step that is performed for
the pico files.

I know (rtfs nudged my memory) that I can use MKSTRIPSYM=no, but I
think this violates POLA.

-uwe

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID: <avL4Xf_JHX6Y1Eep@snips.stderr.spb.ru>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: Valery Ushakov <uwe@stderr.spb.ru>
Newsgroups: muc.lists.netbsd.tech.toolchain
Subject: debug info stripped from shared libs?
Date: Tue, 10 Nov 2026 13:56:29 +0300
Organization: Newsgate at muc.de e.V.
Sender: tech-toolchain-owner@NetBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <avL4Xf_JHX6Y1Eep@snips.stderr.spb.ru>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="11587"; mail-complaints-to="news-admin@muc.de"
Content-Disposition: inline
Precedence: bulk
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes