Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: mccoy@pixar.UUCP (Daniel McCoy)
Subject: mips symbol table stripping
Date: 21 Sep 89 01:07:14 GMT	[thread overview]
Message-ID: <6833@pixar.UUCP> (raw)

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


             reply	other threads:[~1989-09-21  1:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1989-09-21  1:07 Daniel McCoy [this message]
1989-09-22 16:43 ` bug in ds3100 cc? John Sahr
1989-09-22 20:31   ` Chris Siebenmann
1989-09-23  8:12   ` Roger B.A. Klorese
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox