mips symbol table stripping

Daniel McCoy mccoy at pixar.UUCP
Thu Sep 21 11:07:14 AEST 1989


Is there a tool around for manipulating the mips object file
symbol table?   (SGI 4D, DEC 3100, etc.)

I have created an object file which contains a large package 
linked together with the relocation preserved. (ld -r)
The idea is that customers will be able to link this package into
their application as a major subsystem. (They also have the
option of running it as a separate program.)
  
That works fine, but all of the global symbols that link the guts of
the package together are still present in the symbol table.

I want to preserve the set of symbols that define the interface 
to the package as well as undefined references to system libraries.   
I would like to either remove or remap any other symbols,
so as to avoid accidental symbol collisions with applications.

Changing the source of the package is not an option.

There is a set of functions for reading mips coff files, 
(sgi: ldfcn(4), dec ldfcn(5)),
but they make no provisions for writing things back out.

strip(1) is pretty much all or nothing.

I'm in the process of rolling my own, but I would appreciate anything
that might be of help.

Thanks,

Dan McCoy    pixar!mccoy    (415) 258-8195   Pixar, San Rafael, Ca



More information about the Comp.sys.sgi mailing list