Memory Violation With Windres and Shared Data Segments

Dirk Fieldhouse
Tue Aug 31 23:49:00 GMT 1999

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.


Dirk Fieldhouse                 Logica UK Limited           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

More information about the Cygwin mailing list