[Rpm-maint] [rpm-software-management/rpm] find-debuginfo.sh: Remove non-allocated NOBITS sections from minisymtab. (#267)

Igor Gnatenko notifications at github.com
Thu Jul 20 17:44:10 UTC 2017

In the minisymtab section (the .gnu_debugdata embedded ELF image) we
do not need unallocated sections (except for the SYMTAB and STRTAB
sections we are creating). We already remove PROGBITS and NOTES. Also
remove NOBITS sections. They should not really take up much (any) space
but they still add to the section tables. These sections might be created
with the new --keep-section support (which puts the actual section in
the main ELF binary, and a NOBITS variant in the .debug file).

Also binutils objcopy seems to sometimes add them anyway filled with
zeros instead of marking them NOBITS.

Signed-off-by: Mark Wielaard <mark at klomp.org>

(this is same patch as posted to mailing list, sending it here since now we have CI)
You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * find-debuginfo.sh: Remove non-allocated NOBITS sections from minisymtab.

-- File Changes --

    M scripts/find-debuginfo.sh (8)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20170720/242b234f/attachment.html>

More information about the Rpm-maint mailing list