public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* section bug?
@ 1999-07-01  0:00 SONE Takeshi
  1999-07-01  0:00 ` patch for i386-pe section header [Re: section bug?] Mumit Khan
  0 siblings, 1 reply; 5+ messages in thread
From: SONE Takeshi @ 1999-07-01  0:00 UTC (permalink / raw)
  To: egcs; +Cc: binutils

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                                      ^[$B$=$M^[(B ^[$B$?$1$7^[(B
mailto:ts1@cma.co.jp                    Office Craftsman Arts
http://www.cma.co.jp/~ts1/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1999-07-01  0:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-01  0:00 section bug? SONE Takeshi
1999-07-01  0:00 ` patch for i386-pe section header [Re: section bug?] Mumit Khan
1999-07-01  0:00   ` Ian Lance Taylor
1999-07-01  0:00     ` Mumit Khan
1999-07-01  0:00     ` Mumit Khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).