[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/27226] New: ld.bfd contains huge .rodata section
From: |
mliska at suse dot cz |
Subject: |
[Bug ld/27226] New: ld.bfd contains huge .rodata section |
Date: |
Fri, 22 Jan 2021 09:25:19 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=27226
Bug ID: 27226
Summary: ld.bfd contains huge .rodata section
Product: binutils
Version: 2.35.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: mliska at suse dot cz
Target Milestone: ---
Looking at the size of ld.bfd binary I see:
$ bloaty /usr/bin/ld.bfd
FILE SIZE VM SIZE
-------------- --------------
89.5% 7.78Mi 89.5% 7.78Mi .rodata
7.0% 623Ki 7.0% 623Ki .text
1.2% 103Ki 1.2% 103Ki .rela.dyn
Where the .rodata section is full of linker scripts:
$ strings /usr/bin/ld.bfd | grep 'this script' | wc -l
927
So there are almost 1000 linker scripts. Would it be possible to save the
scripts in a more compressed form?
$ du -hs ld.bfd
8.7M ld.bfd
$ xz ld.bfd
$ du -hs ld.bfd.xz
316K ld.bfd.xz
So one can easily compress the binary size 30x.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/27226] New: ld.bfd contains huge .rodata section,
mliska at suse dot cz <=
- [Bug ld/27226] ld.bfd contains huge .rodata section, mliska at suse dot cz, 2021/01/22
- [Bug ld/27226] ld.bfd contains huge .rodata section, mark at klomp dot org, 2021/01/22
- [Bug ld/27226] ld.bfd contains huge .rodata section, amodra at gmail dot com, 2021/01/22
- [Bug ld/27226] ld.bfd contains huge .rodata section, hjl.tools at gmail dot com, 2021/01/24
- [Bug ld/27226] ld.bfd contains huge .rodata section, mliska at suse dot cz, 2021/01/25
- [Bug ld/27226] ld.bfd contains huge .rodata section, amodra at gmail dot com, 2021/01/25
- [Bug ld/27226] ld.bfd contains huge .rodata section, hjl.tools at gmail dot com, 2021/01/25
- [Bug ld/27226] ld.bfd contains huge .rodata section, cvs-commit at gcc dot gnu.org, 2021/01/26