Page 1 of 1

do symbol tables do this?

Posted: Sat Nov 25, 2006 9:26 pm
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

Posted: Sun Nov 26, 2006 3:54 am
by kataklinger
And why don't you put all you want to export from EXE into another DLL?

Posted: Sun Nov 26, 2006 3:57 am
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