From: Herman Bloggs <hermanator12002@ya...> - 2002-10-25 21:45:51
How can I create a shared data section for my dll
using mingw 1.1 tools?
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
From: Luke Dunstan <coder_infidel@ho...> - 2002-10-26 05:02:57
The way you are supposed to create shared data is:
int bar __attribute__((section(".shared"), shared)) = 0;
There is a bug in binutils that prevents this from working, so for now you
need to do:
asm (".globl _bar\n" ".section .shared,\"ds\"\n" "_bar:\n\t.long 0");
I got this from the mailing list archives a while ago (by searching for
".shared") but I can't access it now because the archives seem to be "out of
----- Original Message -----
From: "Herman Bloggs" <hermanator12002@...>
Sent: Saturday, October 26, 2002 5:45 AM
Subject: [Mingw-users] Shared Data Section
> How can I create a shared data section for my dll
> using mingw 1.1 tools?