Xref: utzoo comp.unix.questions:26661 comp.unix.internals:926 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!edcastle!aiai!richard From: richard@aiai.ed.ac.uk (Richard Tobin) Newsgroups: comp.unix.questions,comp.unix.internals Subject: Re: Changing symbols to "static" Keywords: coff ld Message-ID: <3693@skye.ed.ac.uk> Date: 2 Nov 90 15:20:31 GMT References: <781@nixbur.UUCP> Reply-To: richard@aiai.UUCP (Richard Tobin) Organization: AIAI, University of Edinburgh, Scotland Lines: 18 In article <781@nixbur.UUCP> jobrien@nixbur.UUCP (John O'Brien) writes: >Is there some way to change a symbol's class to "static" in a ".o" file? Almost certainly. Examine the format of symbol table entries, and see what you can do. There will be include files describing it - a.out.h perhaps, and a man page for a.out. Then write a program which reads in the .o file, and writes it out with a modified symbol table. A simple hack which may be enough is just to edit the .o file (using an editor like gnu emacs which doesn't have line length restrictions). Find the symbol name and change it to something obscure, being careful not to change its length. -- Richard -- Richard Tobin, JANET: R.Tobin@uk.ac.ed AI Applications Institute, ARPA: R.Tobin%uk.ac.ed@nsfnet-relay.ac.uk Edinburgh University. UUCP: ...!ukc!ed.ac.uk!R.Tobin