From: "H. Peter Anvin" <hpa@zytor.com>
To: linux-kernel@vger.kernel.org
Subject: Re: List of all-zero .data variables in linux-2.4.3 available
Date: 12 Apr 2001 14:27:43 -0700 [thread overview]
Message-ID: <9b56kf$a8n$1@cesium.transmeta.com> (raw)
In-Reply-To: <200104121901.MAA04011@adam.yggdrasil.com> <m38zl6rkun.fsf@otr.mynet.cygnus.com>
Followup to: <m38zl6rkun.fsf@otr.mynet.cygnus.com>
By author: Ulrich Drepper <drepper@redhat.com>
In newsgroup: linux.dev.kernel
>
> "Adam J. Richter" <adam@yggdrasil.com> writes:
>
> > >Shouldn't a compiler be able to deal with this instead?
> >
> > Yes.
>
> No. gcc must not do this. There are situations where you must place
> a zero-initialized variable in .data. It is a programmer problem.
>
And this cannot be decorated with __attribute__((section(".data")))
why?
-hpa
--
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt
next prev parent reply other threads:[~2001-04-12 21:28 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-12 19:01 List of all-zero .data variables in linux-2.4.3 available Adam J. Richter
2001-04-12 19:14 ` Ulrich Drepper
2001-04-12 21:27 ` H. Peter Anvin [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-04-12 20:04 Adam J. Richter
2001-04-12 19:50 Adam J. Richter
2001-04-12 19:29 Adam J. Richter
2001-04-12 19:40 ` Ulrich Drepper
2001-04-16 14:33 ` Pavel Machek
2001-04-12 12:36 Adam J. Richter
2001-04-12 14:44 ` johan.adolfsson
2001-04-12 14:57 ` Russell King
2001-04-12 15:28 ` Richard B. Johnson
2001-04-12 19:52 ` Jeff Garzik
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='9b56kf$a8n$1@cesium.transmeta.com' \
--to=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.