* alignment errors
@ 2010-11-12 11:25 Jaap de Jong
2010-11-12 13:18 ` Holger Freyther
2010-11-12 17:00 ` Khem Raj
0 siblings, 2 replies; 3+ messages in thread
From: Jaap de Jong @ 2010-11-12 11:25 UTC (permalink / raw)
To: openembedded-devel
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?
Thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: alignment errors
2010-11-12 11:25 alignment errors Jaap de Jong
@ 2010-11-12 13:18 ` Holger Freyther
2010-11-12 17:00 ` Khem Raj
1 sibling, 0 replies; 3+ messages in thread
From: Holger Freyther @ 2010-11-12 13:18 UTC (permalink / raw)
To: openembedded-devel
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: alignment errors
2010-11-12 11:25 alignment errors Jaap de Jong
2010-11-12 13:18 ` Holger Freyther
@ 2010-11-12 17:00 ` Khem Raj
1 sibling, 0 replies; 3+ messages in thread
From: Khem Raj @ 2010-11-12 17:00 UTC (permalink / raw)
To: openembedded-devel
On Fri, Nov 12, 2010 at 3:25 AM, Jaap de Jong <jaap.dejong@nedap.com> 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?
>
avoid them they are inefficient and will paper over the real problem.
As Holger suggest
take gdb help to debug the problem and then fix it accordingly.
> Thanks!
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-11-12 17:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-12 11:25 alignment errors Jaap de Jong
2010-11-12 13:18 ` Holger Freyther
2010-11-12 17:00 ` Khem Raj
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.