[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#903376: libc6-amd64: installed package size has exploded



Control: reassign -1 binutils 2.30.90.20180627-1
Control: retitle -1 binutils: produces large 64-bit libraries on i386
Control: affects -1 libc6-amd64 libc6-x32

On 2018-07-09 11:19 +0200, Sven Joachim wrote:

> Package: libc6-amd64
> Version: 2.27-4
> Severity: important
>
> On i386, libc6-amd64 and libc6-x32 install more than one gigabyte each:
>
> ,----
> | $ apt-cache show libc6-amd64 libc6-x32 | grep Installed-Size
> | Installed-Size: 1143839
> | Installed-Size: 1143407
> `----
>
> Looking at /lib64, all the .so files from libc6-amd64 are over four
> megs, although file(1) reports them as stripped.

Looks like that is a binutils bug, I see the same problem when building
the ncurses multilib packages.  Apparently this started when I upgraded
binutils from 2.30-22 to 2.30.90.20180627-1.

These libraries have a large number of null bytes in them, their
occupied space is reduced considerably in a sparse copy:

,----
| $ du /lib64/ld-2.27.so                     
| 4136    /lib64/ld-2.27.so
| $ cp --sparse=always /lib64/ld-2.27.so /tmp
| $ du /tmp/ld-2.27.so               
| 164     /tmp/ld-2.27.so
`----

> -- System Information:
> Debian Release: buster/sid
>   APT prefers unstable
>   APT policy: (500, 'unstable'), (101, 'experimental')
> Architecture: i386 (x86_64)

Note that binutils on amd64 is apparently unaffected, I haven't looked
at other architectures.

Cheers,
       Sven


Reply to: