Getting GCC to always dllimport vtables on X86?

2008-03-04 Thread Reuben Harris
ling to show me the way with this? Although I am a proficient C/C++ programmer, I am a GNU noob and the GCC source code scares me... :-) I think I've found the right place in GCC - import_export_vtable in decl2.c - but am at a loss to understand the ld source. Many thanks, -- Reuben Harris

Injecting data declarations?

2008-03-06 Thread Reuben Harris
Hi, I would like to modify GCC to inject a link-once word-sized data declaration into the object file, i.e. to behave AS IF there were extra declarations in the source code, e.g.: void* __secret__Foo = &Foo; (Where Foo is some piece of static data that was defined in source.) Can someone gi