[lld] [lld][ELF][test] Accept zlib-ng compressed size (PR #206880)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 30 20:49:35 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lld

Author: Mark Zhuang (zqb-all)

<details>
<summary>Changes</summary>

zlib-ng deflates slightly differently from zlib; the level-1 default is 0x20, just outside the LEVEL1 pattern. Widen it to accept 0x20.

Assisted-by: claude-opus

---
Full diff: https://github.com/llvm/llvm-project/pull/206880.diff


1 Files Affected:

- (modified) lld/test/ELF/compressed-debug-level.test (+1-1) 


``````````diff
diff --git a/lld/test/ELF/compressed-debug-level.test b/lld/test/ELF/compressed-debug-level.test
index 7d64298e518f3..d47754e9a3439 100644
--- a/lld/test/ELF/compressed-debug-level.test
+++ b/lld/test/ELF/compressed-debug-level.test
@@ -18,7 +18,7 @@
 # RUN: llvm-readelf --sections %t.6 | FileCheck -check-prefixes=HEADER,LEVEL6 %s
 
 # HEADER: [Nr] Name        Type     Address  Off    Size
-# LEVEL1: [ 1] .debug_info PROGBITS 00000000 000094 0000{{1[cdef]|21}}
+# LEVEL1: [ 1] .debug_info PROGBITS 00000000 000094 0000{{1[cdef]|2[01]}}
 # LEVEL6: [ 1] .debug_info PROGBITS 00000000 000094 00001{{[abc]}}
 
 ## A little arbitrary debug section which has a different size after

``````````

</details>


https://github.com/llvm/llvm-project/pull/206880


More information about the llvm-commits mailing list