[llvm-bugs] [Bug 45767] New: `ld.lld --help ` doesn't mention zlib-gnu or zlib-gabi support

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Apr 30 22:26:13 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=45767

            Bug ID: 45767
           Summary: `ld.lld --help ` doesn't mention zlib-gnu or zlib-gabi
                    support
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: ndesaulniers at google.com
                CC: dblaikie at gmail.com, echristo at gmail.com,
                    llvm-bugs at lists.llvm.org, maskray at google.com,
                    rupprecht at google.com, smithp352 at googlemail.com,
                    srhines at google.com

I'm looking into enabling compressed debug info support within the Linux
kernel.

I noticed from `man 1 ld` that the documentation on
`--compress-debug-sections=` says:

           The default compression behaviour varies depending upon the
           target involved and the configure options used to build the
           toolchain.  The default can be determined by examining the output
           from the linker's --help option.

If I run:

$ ld.lld --help | grep zlib
  --compress-debug-sections=[none,zlib]
$ ld.bfd --help | grep zlib
  --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi]
                              Compress DWARF debug sections using zlib


Does lld not support `zlib-gnu` or `zlib-gabi`?  I'm not really sure which
option is even preferred, so I'll run some builds and compare zdebug_* section
sizes.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200501/0823144e/attachment.html>


More information about the llvm-bugs mailing list