OS: Windows XP Pro SP1
gcc: 3.2.3 (mingw special 20030504-1)
ld: 2.13.90 20030111
mingw: MinGW-3.1.0-1.exe
build env: ran mingw32-make under Windows cmd.exe
w32api: __W32API_VERSION 2.5
dlltool reports a syntax error if it encounters a .def
file with a "SECTIONS" section in it. This prevents the
user from being able to make DLLs with shared sections
in them.
Info about creating DLLs with shared sections:
Logged In: YES
user_id=30442
To create shared data in a DLL, use:
int foo __attribute__((section (".shared"), shared)) = 0;
(from the GCC manual)