This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Memory Violation With Windres and Shared Data Segments
- To: cygwin@sourceware.cygnus.com
- Subject: Re: Memory Violation With Windres and Shared Data Segments
- From: fieldhouse@logica.com (Dirk Fieldhouse)
- Date: Mon, 09 Aug 1999 17:52:21 GMT
On Sat, 07 Aug 1999 22:55:16 -0500, Mumit Khan <khan@xraylith.wisc.EDU> wrote:
>...>[binutils &c enhancements for shareable data segments]
>Just to let you folks know, I just submitted patches to both binutils >and gcc to make this happen.
>
>In the future, you'll be able to do this:
>
> int __attribute__((section ("shared"), shared)) foo = 0;
> int
> main ()
> {
> /* do stuff to foo. */
> return 0;
> }
>
>and all running copies of the executable will share ``foo''.
>...
That certainly explains why my hook DLL with
static HHOOK __attribute__ ((section("SHARED"))) g_hHook = NULL;
(hoping for magic in the section name) didn't fly!
I'll look forward to a better result with the enhanced tools.
Thanks
/df
--
Dirk Fieldhouse Logica UK Limited
fieldhouse@logica.com 75 Hampstead Road
c=gb;a=attmail;p=logica; London NW1 2PL
o=LOGICA;ou1=UK;s=fieldhouse UK
+44 (171) 637 9111
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com