🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: muc.lists.netbsd.tech.toolchain
1 messages
1 total messages Started by Valery Ushakov Tue, 10 Nov 2026 10:56
debug info stripped from shared libs?
#5
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads