Unix Programming - Not stripping undefined symbols under linux

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > March 2005 > Not stripping undefined symbols under linux





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Not stripping undefined symbols under linux
John Smith

2005-03-19, 5:49 pm

From Mac OS X 'man strip':

---
For objects that will be loaded into an executable, you should trim the
symbol table to limit the global symbols the executable will see.
This would be done with:
% strip -s interface_symbols -u object
which would leave only the undefined symbols and symbols listed in
the file interface_symbols in the object file. In this case, strip(1)
has updated the relocation entries and indirect symbol table to reflect
the new symbol table.
---

I would like to do exactly the same under linux, however '-u' is not
available in gnu strip. '-s' can be replaced with a list of "-K symbolname"
though.

Please advice how to get same functionality.

-- John




Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com