section bug?
SONE Takeshi
ts1@cma.co.jp
Thu Jul 1 00:00:00 GMT 1999
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/
More information about the Binutils
mailing list