do symbol tables do this?

Programming, for all ages and all languages.
Post Reply
earlz
Member
Member
Posts: 1546
Joined: Thu Jul 07, 2005 11:00 pm
Contact:

do symbol tables do this?

Post by earlz »

I have a bit of a problem...
in my PC emulator I have a few functions that would be quite useful to devices(which are in DLL's)
I know you can do a .a static library it will be hard to keep them up to date and plus I don't want a lot of repeating code

So would just exporting a symbol table from my PC emulator(EXE)
and then linking my device(dll) with that symbol table--would that make the DLL able to resolve all the symbols from the EXE?

also if that would work, could someone tell me how to do that under gcc and ld
User avatar
kataklinger
Member
Member
Posts: 381
Joined: Fri Nov 04, 2005 12:00 am
Location: Serbia

Post by kataklinger »

And why don't you put all you want to export from EXE into another DLL?
earlz
Member
Member
Posts: 1546
Joined: Thu Jul 07, 2005 11:00 pm
Contact:

Post by earlz »

hmmm.. maybe, only thing is I want my emulator to be very portable and having conditional builds, for a dll or a shared object is just about impossible to do, especially since they both use different arguments for ld
Post Reply