Article View: gnu.misc.discuss
Article #777dynamic link tables...
From: Gray Watson
Date: Fri, 21 Aug 1992 03:57
Date: Fri, 21 Aug 1992 03:57
25 lines
1151 bytes
1151 bytes
This is probably an inappropriate question to post here.
Anyone know of anyone whose has hacked ld to provide
jump-to-string-function-name functionality.
In other words the ability to say:
static void foo() {}
main()
{
virtual_jump("foo", args...);
}
I don't care if the args to foo will then be a varargs list.
I am simulating this now in straight C but it requires foo to be registered in
a string->name table. The linker has to know the name so I thought it might be
easy to have it do this work.
Unfortunately, switching to c++ (does it have this sort of functionality) or
objective c (I know it does) is not a viable solution at this point. :-)
always dreaming,
gray
Technical Details
Message-ID:
<9208210357.AA15581@antaire.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!antaire.COM!grayShow Full Headers
Complete Article Headers
Newsgroups: gnu.misc.discuss Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!antaire.COM!gray From: gray@antaire.COM (Gray Watson) Subject: dynamic link tables... Message-ID: <9208210357.AA15581@antaire.com> Sender: daemon@cis.ohio-state.edu Reply-To: gray.watson@antaire.com Organization: antaire corporation, pittsburgh, pa, usa Distribution: gnu Date: Fri, 21 Aug 1992 03:57:01 GMT Lines: 25