From: Holger Freyther <holger+oe@freyther.de>
To: openembedded-devel@lists.openembedded.org
Subject: Re: alignment errors
Date: Fri, 12 Nov 2010 14:18:17 +0100 [thread overview]
Message-ID: <4CDD3E99.9090400@freyther.de> (raw)
In-Reply-To: <4CDD2445.5050506@nedap.com>
On 11/12/2010 12:25 PM, Jaap de Jong wrote:
> Hi,
>
> I'm working on a recipe for ptpd2.
> When I run it on my armv5te I get traps:
>
> [ 5034.410000] Alignment trap: ptpd2 (523) PC=0x0000e7cc Instr=0xe5870004
> Address=0x0001d459 FSR 0x801
>
> What is the best way to tackle this?
> Do I have to add "__attribute__ ((packed))" on critical places?
>
use addr2line or gdb (if this is inside a library) to get the method/code that
is triggering that and then see what it looks like. In most cases the easiest
way to get around this is to use memcpy or such.
next prev parent reply other threads:[~2010-11-12 13:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-12 11:25 alignment errors Jaap de Jong
2010-11-12 13:18 ` Holger Freyther [this message]
2010-11-12 17:00 ` Khem Raj
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=4CDD3E99.9090400@freyther.de \
--to=holger+oe@freyther.de \
--cc=openembedded-devel@lists.openembedded.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.