This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

section bug?


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/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]