From mboxrd@z Thu Jan 1 00:00:00 1970 From: SONE Takeshi To: egcs@cygnus.com Cc: binutils@sourceware.cygnus.com Subject: section bug? Date: Thu, 01 Jul 1999 00:00:00 -0000 Message-id: <374E2BA7.C491E4CB@cma.co.jp> X-SW-Source: 1999-q2/msg00081.html In Cygwin32 and Mingw32 environment with binutils 2.9.4, this code crashes: int a __attribute__((section("mysec"))) = 0; main() { a = 1; } gcc looks doing right thing: .section mysec,"w" .align 4 _a: .long 0 I run dumpbin.exe (from MS) on the output and it says that mysec in the .o file is marked Read Only, and in the .exe file it is marked Code and Read Only. -- SONE Takeshi そね たけし mailto:ts1@cma.co.jp Office Craftsman Arts http://www.cma.co.jp/~ts1/