Anybody know how/if you can get MinGW GCC to add one of these things to the exe header?
In Visual Studio you do this
Code:
extern IMAGE_LOAD_CONFIG_DIRECTORY _load_config_used = {
0x24, // fill these with whatever
0x12345678
};
And the VS linker knows to look for _load_config_used and does the bizzo, filling in the IMAGE_DIRECTORY_ENTRY_LOAD_CONFIG PE optional header directory with a pointer to it. MinGW doesn't know the magic name, or at least doesn't do anything special with it, so if its possible there's some other method to achieve it.
I can use assembly if there are ways to make AS/GAS do it directly.