Problems stripping symbol table

sheldon.riddell

Registered
Hi,

I have a build system running on linux, solaris, freebsd, openbsd and mac osx.
After compilation of the modules I use the strip utility with no options to strip the symbol table. This all works fine on any of the architectures other than mac osx.

running nm afterwards I get U (undefined), T (text section symbol), D (data section symbol) entries under the symbol table on the other architectures nothing which is what I want

Strip under mac now has the following notes from the man page:

strip no longer removes relocation entries under any condition. Instead, it updates the external
relocation entries (and indirect symbol table entries) to reflect the resulting symbol table. strip
prints an error message for those symbols not in the resulting symbol table that are needed by an
external relocation entry or an indirect symbol table. The link editor ld(1) is the only program
that can strip relocation entries and know if it is safe to do so.



Ive had a play around with ld as well but cant seem to get any joy.

Thanks for any help.
 
Last edited:
Hi, thanks for the reply.
That was one of the first things I tried. But I still get nm D, T and U entries in my symbol table. Where as under linux etc strip with no opts completely strips my symbol table.

Sheldon
 
Back
Top