Skip to content

Commit 37a4402

Browse files
committed
rhel: Disable dwz (dwarf compression), so we get debuginfo usable with lldb
1 parent 6e7c5af commit 37a4402

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

redhat/freeradius.spec

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,28 @@ This plugin provides YubiCloud support for the FreeRADIUS server project.
596596
%undefine _debugsource_packages
597597
%undefine _debuginfo_subpackages
598598

599+
# Disable dwz (DWARF compression) for debuginfo packages.
600+
#
601+
# RPM's find-debuginfo script runs dwz by default, which deduplicates common DWARF type information across
602+
# all binaries/libraries into a shared alternate debug file (referenced via .gnu_debugaltlink sections).
603+
# dwz uses GNU DWARF form extensions DW_FORM_GNU_ref_alt (0x1f20) and DW_FORM_GNU_strp_alt (0x1f21) to
604+
# reference entries in this shared file.
605+
#
606+
# As of lldb 22.1 (March 2026) these GNU extensions are not supported, producing:
607+
# warning: (x86_64) unsupported DW_FORM values: 0x1f20 0x1f21
608+
# and rendering lldb unable to resolve source files, line numbers, or type information.
609+
#
610+
# gdb is unaffected as it natively supports these GNU extensions. This is not specific to FreeRADIUS -
611+
# all RPM debuginfo packages on Fedora/RHEL/CentOS are affected.
612+
#
613+
# References:
614+
# https://github.com/llvm/llvm-project/issues/63973
615+
# https://reviews.llvm.org/D96237 (incomplete 17-part patch series, never fully upstreamed)
616+
# https://lists.llvm.org/pipermail/lldb-dev/2018-August/013977.html
617+
#
618+
# Disabling dwz increases debuginfo package size but makes debug symbols usable with both gdb and lldb.
619+
%define _find_debuginfo_dwz_opts %{nil}
620+
599621
%prep
600622
%setup -q -n freeradius-server-%{version}
601623
# Some source files mistakenly have execute permissions set

0 commit comments

Comments
 (0)