NetBSD-Bugs archive

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

lib/54449: _pic.a libraries contain unwanted debug information



>Number:         54449
>Category:       lib
>Synopsis:       _pic.a libraries contain unwanted debug information
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 09 09:25:00 +0000 2019
>Originator:     Andreas Gustafsson
>Release:        NetBSD 8.1, also -current
>Organization:

>Environment:
System: NetBSD
Architecture: x86_64
Machine: amd64
>Description:

As recently discussed on source-changes-d, the _pic.a versions
of libraries in NetBSD releases are much larger than the .a, _p.a,
or .so, using a significant fraction of the disk space taken by
a full NetBSD installation:

  http://mail-index.netbsd.org/source-changes-d/2019/08/08/msg011535.html

Although that discussion was in the context of live images, the
problem is not specific to those.  For example, looking at libcurses
on an ordinary 8.1 amd64 system installed using sysinst:

  guido /usr/lib $ ls -al libcur*
  -r--r--r--  1 root  wheel   381166 May 31 11:43 libcurses.a
  lrwxr-xr-x  1 root  wheel       16 May 31 11:43 libcurses.so -> libcurses.so.7.1
  lrwxr-xr-x  1 root  wheel       16 May 31 11:43 libcurses.so.7 -> libcurses.so.7.1
  -r--r--r--  1 root  wheel   200784 May 31 11:43 libcurses.so.7.1
  -r--r--r--  1 root  wheel   406966 May 31 11:43 libcurses_p.a
  -r--r--r--  1 root  wheel  2081382 May 31 11:43 libcurses_pic.a

Apparently the _pic.a library contains full debug information, whereas
the others have had it stripped or replaced by CTF.  Presumably the same
ought to be done to the _pic.a, too.

>How-To-Repeat:

ls -l /usr/lib

>Fix:



Home | Main Index | Thread Index | Old Index