This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
section bug?
- Subject: section bug?
- From: SONE Takeshi <ts1@cma.co.jp>
- Date: Fri, 28 May 1999 14:37:43 +0900
- CC: binutils@sourceware.cygnus.com
- Newsgroups: gnu.utils.bug
- Organization: Craftsman Arts
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/