[ale] Shared Libs and stripping

Keith Hopkins hne at inetnow.net
Tue Dec 4 08:35:35 EST 2001


Chris Fowler wrote:

> My GLIBC is too big.  I'm refering to the one that comes standard with
> RH7.2.  I need to strip out all objects that are not being used.  I can
> download the source and build what is needed from that.  How can I determine
> what objects are ultimately being used by my programs?
> 
> Chris
> 


Hi Chris,

   You need to look at the external symbols being exported by your program.  I think "objdump -t|--syms" would be able to show you this.

Example:
hades:~ # objdump -t  /usr/local/bin/pan | more

/usr/local/bin/pan:     file format elf32-i386

SYMBOL TABLE:
080480f4 l    d  .interp	00000000
08048108 l    d  .note.ABI-tag	00000000
08048128 l    d  .hash	00000000
0804a8dc l    d  .dynsym	00000000
0805071c l    d  .dynstr	00000000
080584f4 l    d  .gnu.version	00000000
080590bc l    d  .gnu.version_r	00000000
....
080ffaf4 l     O .bss	00000018              object.11
0805cb10 l     F .text	00000000              frame_dummy
0805cb40 l     F .text	00000000              init_dummy
080f9a8c l     O .data	00000000              force_to_data
080fefb0 l     O .ctors	00000000              __CTOR_LIST__
00000000 l    df *ABS*	00000000              crtstuff.c
080ca840 l       .text	00000000              gcc2_compiled.
080ca840 l     F .text	00000000              __do_global_ctors_aux
080fefb4 l     O .ctors	00000000              __CTOR_END__
080ca870 l     F .text	00000000              init_dummy
....


Lost in Tokyo,
   Keith



---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list