mccoy@pixar.UUCP (Daniel McCoy) (09/21/89)
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