[Bug 1012533] New: rpm debugedit does not support compressed debug info sections
http://bugzilla.suse.com/show_bug.cgi?id=1012533 Bug ID: 1012533 Summary: rpm debugedit does not support compressed debug info sections Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Development Assignee: bnc-team-screening@forge.provo.novell.com Reporter: rguenther@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- When compressed debug info sections are enabled (ELF sections with Z flag) debugedit is no longer able to rewrite DW_AT_comp_dir and thus debuginfo does no longer find debugsource files. Using [-Wl,]--compress-debug-sections=zlib at link time yields such debuginfo sections. This blocks enabling compressed debuginfo sections in Factory. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1012533
Chenzi Cao
http://bugzilla.suse.com/show_bug.cgi?id=1012533
http://bugzilla.suse.com/show_bug.cgi?id=1012533#c1
--- Comment #1 from Michael Schröder
http://bugzilla.suse.com/show_bug.cgi?id=1012533
http://bugzilla.suse.com/show_bug.cgi?id=1012533#c2
--- Comment #2 from Richard Biener
http://bugzilla.suse.com/show_bug.cgi?id=1012533
http://bugzilla.suse.com/show_bug.cgi?id=1012533#c3
--- Comment #3 from Richard Biener
http://bugzilla.suse.com/show_bug.cgi?id=1012533
http://bugzilla.suse.com/show_bug.cgi?id=1012533#c5
--- Comment #5 from Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1012533
http://bugzilla.suse.com/show_bug.cgi?id=1012533#c7
--- Comment #7 from Richard Biener
(In reply to Richard Biener from comment #0)
This blocks enabling compressed debuginfo sections in Factory.
I wonder if using objcopy to compress the debug sections rather than the linker might simplify things here.
We could do the compression in find-debuginfo.sh, after debugedit and dwz-compression, and then we have packages with compressed debug info, without having to fix this debugedit PR and the corresponding dwz PR (swo#24725).
Hmm, yeah - this sounds like a neat way to circumvent some of the issues. I think RedHat also keeps some bare debug info to allow pretty backtraces in the binaries where compression could reduce the binary size penalty. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1012533
http://bugzilla.suse.com/show_bug.cgi?id=1012533#c8
--- Comment #8 from Tom de Vries
I think RedHat also keeps some bare debug info to allow pretty backtraces in the binaries where compression could reduce the binary size penalty.
I think you're referring to MiniDebugInfo ( https://fedoraproject.org/wiki/Features/MiniDebugInfo ) stored in a section called .gnu_debugdata. This is already compressed, not using objcopy though, but by running xz on the section before adding it using objcopy --add-section. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1012533
http://bugzilla.suse.com/show_bug.cgi?id=1012533#c9
--- Comment #9 from Tom de Vries
http://bugzilla.suse.com/show_bug.cgi?id=1012533
http://bugzilla.suse.com/show_bug.cgi?id=1012533#c13
--- Comment #13 from Tom de Vries
(In reply to Michael Schröder from comment #11)
Looks good to me, but I'm not a debuginfo expert.
Thanks for the review.
Could you open a pull request at https://github.com/rpm-software-management/rpm so that we get some input from upstream rpm?
It got merged. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com