Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 5/3/83; site cmu-cs-k.ARPA
Path: utzoo!linus!philabs!cmcl2!seismo!rochester!cmu-cs-pt!cmu-cs-k!tim
From: tim@cmu-cs-k.ARPA (Tim Maroney)
Newsgroups: net.lang.c
Subject: Re: Dollars and Sense
Message-ID: <20980043@cmu-cs-k.ARPA>
Date: Mon, 31-Dec-84 14:45:15 EST
Article-I.D.: cmu-cs-k.20980043
Posted: Mon Dec 31 14:45:15 1984
Date-Received: Tue, 1-Jan-85 06:29:02 EST
References: <319@idis.UUCP>
Organization: Carnegie-Mellon University, CS/RI
Lines: 19

Using "asm( whatever )" to change the names of symbols is flawed for the
same reasons assembly language output processing is.  There are compilers
which neither put out assembly language nor have the capability to interpret
unusual (or any) "asm" statements.

I think the best idea so far was improving linkers so that they can do it.
Another option is to write programs for the various systems that filter
object files' symbol tables to change the names as desired.  This means you
don't have to mess with the existing linkers, just insert another
post-compilation processing phase.  I don't think a prototype program to do
this on UN*X would be very hard, but I don't have the time now myself.
-=-
Tim Maroney, Carnegie-Mellon University Computation Center
ARPA:	Tim.Maroney@CMU-CS-K	uucp:	seismo!cmu-cs-k!tim
CompuServe:	74176,1360	audio:	shout "Hey, Tim!"

"Remember all ye that existence is pure joy; that all the sorrows are
but as shadows; they pass & are done; but there is that which remains."
Liber AL, II:9.