delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, |
<http://sourceware.cygnus.com/ml/#faqs> | |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
Message-Id: | <199908091754.SAA03869@cav.logica.co.uk> |
Date: | Mon, 09 Aug 1999 17:52:21 GMT |
To: | cygwin AT sourceware DOT cygnus DOT com |
From: | fieldhouse AT logica DOT com (Dirk Fieldhouse) |
Subject: | Re: Memory Violation With Windres and Shared Data Segments |
X-Mailer: | Mozilla/4.0 (Windows 95;US) Opera 3.60 [en] |
On Sat, 07 Aug 1999 22:55:16 -0500, Mumit Khan <khan AT xraylith DOT wisc DOT 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 AT logica DOT 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 AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |