From: Tom Linden <tom@thirdmillenium.com>
Subject: Re: This may be a really dumb question
Date: Tue, 23 Sep 1997 18:10:39 -0700 (PDT) [thread overview]
Message-ID: <Pine.ULT.3.91.970923180227.171u-100000@gunn.thirdmillenium.com> (raw)
In-Reply-To: <Pine.LNX.3.95.970923051536.527L-100000@sheerx.eni.net>
Most risc machines can only accept a datum on a natural boundary,
thus a 32 bit integer's address has to be evenely divisible by 4.
This is not true with the Power PC, BTW The alpha design team didn't
really know what they were doing. In any event to answer your question,
its the job of the compiler to properly align things. If you get this
message then its really a compiler bug, i.e. the compiler that was used
to create the object module, which when excuted causes the trap. These
are a pain in the ass but can usually be fixed (If you don't want to fix
the code generation phase of the compiler) but forcing alignment by one
means or another, such as, declaring a variable of appropriate size either
above or below the variable which is misaligned. If it is gcc, ask
Stallman or Cygnus to fix it once you have isolated the module and the
variable. Use nm sorted by address.
On Tue, 23 Sep 1997, Sheer Panic wrote:
>
> But what _exactly_ causes an unaligned trap on the kernel?
>
> Sheer
>
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
>
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next parent reply other threads:[~1997-09-24 1:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.3.95.970923051536.527L-100000@sheerx.eni.net>
1997-09-24 1:10 ` Tom Linden [this message]
1997-09-24 16:38 ` This may be a really dumb question Volker Barthelmann
1997-09-28 3:39 ` Richard Henderson
1997-09-25 0:57 Uncle George
-- strict thread matches above, loose matches on Subject: below --
1997-09-24 16:39 Przemek Klosowski
1997-09-24 17:12 ` Tom Linden
1997-09-28 4:23 ` Richard Henderson
1997-09-24 5:32 Jim Paradis
1997-09-24 1:28 Jim Paradis
1997-09-23 12:15 Sheer Panic
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox