[PATCH] D20676: [llvm-mc] - Teach llvm-mc to work generate zlib styled compression sections.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Thu May 26 05:35:04 PDT 2016


grimar created this revision.
grimar added reviewers: rafael, davide.
grimar added subscribers: llvm-commits, grimar.

This patch is strongly based on previously reverted D20331.
(because of gnuutils < 2.26 does not support compressed debug sections in non zlib-gnu style)

Difference that this patch supports both zlib and zlib-gnu styles.

-compress-debug-sections option now supports next values:
1) -compress-debug-sections
2) -compress-debug-sections=zlib-gnu
3) -compress-debug-sections=zlib
4) -compress-debug-sections=zlib-gabi
5) -compress-debug-sections=none

If compress-debug-sections is not set, compression is not enabled (no changes here),
if compress-debug-sections is specified, but not set (see 1) zlib style is used. That
is equal in behavior with gas.

http://reviews.llvm.org/D20676

Files:
  include/llvm/MC/MCAsmInfo.h
  include/llvm/MC/MCSectionELF.h
  lib/CodeGen/LLVMTargetMachine.cpp
  lib/MC/ELFObjectWriter.cpp
  lib/MC/MCAsmInfo.cpp
  test/MC/ELF/compression.s
  tools/llvm-mc/llvm-mc.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20676.58593.patch
Type: text/x-patch
Size: 13413 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160526/31169e35/attachment.bin>


More information about the llvm-commits mailing list