public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: SONE Takeshi <ts1@cma.co.jp>
To: egcs@cygnus.com
Cc: binutils@sourceware.cygnus.com
Subject: section bug?
Date: Thu, 01 Jul 1999 00:00:00 -0000	[thread overview]
Message-ID: <374E2BA7.C491E4CB@cma.co.jp> (raw)

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/

             reply	other threads:[~1999-07-01  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-01  0:00 SONE Takeshi [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=374E2BA7.C491E4CB@cma.co.jp \
    --to=ts1@cma.co.jp \
    --cc=binutils@sourceware.cygnus.com \
    --cc=egcs@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).