All of lore.kernel.org
 help / color / mirror / Atom feed
From: Frank Smith <smith@amirix.com>
To: Pete Buechler <peterb@suse.com>
Cc: Ruedi.Hofer@ascom.ch, linuxppc-embedded@lists.linuxppc.org,
	distribution@linux01.hasler.ascom.ch
Subject: Re: newlib, uclib
Date: Thu, 6 Jul 2000 12:14:19 -0300	[thread overview]
Message-ID: <00Jul6.121427adt.7305@dragon.appliedmicro.ns.ca> (raw)
In-Reply-To: 00070608033801.21103@CX579290-B


Pete Buechler wrote:

>
> Another option is to identify the C library functions that you are actually
> using and remove the others from the archive. That would be rather tough by
> hand. Lineo has a closed source tool called "Lipo" which will do that for you -
> there may be a free replacement in the works somewhere.

The Debian boot-floppies package has a script that does this sort of
thing,
I believe. Don't know how well it performs as compared to lipo-suction.

Excerpt from 'boot-floppies/scripts/rootdisk/mklibs.sh':

# Introduction:
# When creating boot floppies, there is never enough room on the disks.
# So it is important not to waste bytes on unnecessary code.
# Shared Libraries contain many functions that are probably not used in
the
# binaries included in the boot disks, and copying the whole library is
a
# waste of space.
# This utilitiy helps to reduce the necessary libraries to only include
the
# symbols needed to run a given set of executables.
#
# Features:
# * Automatic detection of all necessary libraries, even for
inter-library
#   dependencies, for a given set of executables.
# * Automatic installation of all needed libraries and soname links.
# * Automatic reduction of all libraries to minimal size for which PIC
#   libraries are provided.
#
# Requirements:
# * Beside the shared libraries, you need libfoo_pic.a files for all
#   libraries you want to reduce.
# * You need binutils (notably objdump and objcopy) installed.


Frank.


--
Frank Smith, MCompSci
Principal Software Designer      frank.smith@amirix.com
AMIRIX Systems Inc.              http://www.amirix.com/
Embedded Debian Project          http://www.emdebian.org/
77 Chain Lake Drive              902-450-1700 x289 (Phone)
Halifax, N.S. B3S 1E1            902-450-1704 (FAX)

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

  reply	other threads:[~2000-07-06 15:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-06 13:29 newlib, uclib Ruedi.Hofer
2000-07-06 14:26 ` Tom Roberts
2000-07-06 16:57   ` Wolfgang Denk
2000-07-06 14:59 ` Pete Buechler
2000-07-06 15:14   ` Frank Smith [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-07-10 17:48 Eric Vaitl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=00Jul6.121427adt.7305@dragon.appliedmicro.ns.ca \
    --to=smith@amirix.com \
    --cc=Ruedi.Hofer@ascom.ch \
    --cc=distribution@linux01.hasler.ascom.ch \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    --cc=peterb@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.