https://sourceware.org/bugzilla/show_bug.cgi?id=18277
Bug ID: 18277
Summary: --compress-debug-sections=zlib may generate larger
debug sections
Product: binutils
Version: 2.26 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: hjl.tools at gmail dot com
Created attachment 8252
--> https://sourceware.org/bugzilla/attachment.cgi?id=8252&action=edit
A testcase
[hjl@gnu-6 compressed-7]$ make LD=ld z.o
./as -o compress1.o compress1.s
ld -r -o z.o --compress-debug-sections=zlib compress1.o
[hjl@gnu-6 compressed-7]$ readelf -SW compress1.o | grep .debug_aranges
[11] .debug_aranges PROGBITS 0000000000000000 000123 000020 00
0 0 1
[12] .rela.debug_aranges RELA 0000000000000000 000320 000030 18
I 14 11 8
[hjl@gnu-6 compressed-7]$ readelf -SW z.o | grep .debug_aranges
[ 4] .zdebug_aranges PROGBITS 0000000000000000 0001ca 000025 00
0 0 1
[ 5] .rela.zdebug_aranges RELA 0000000000000000 0001f0 000030 18
I 14 4 8
[hjl@gnu-6 compressed-7]$
.zdebug_aranges is 0x25 bytes vs. 0x20 bytes for .debug_aranges.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils