Hi, > I sought more deeply and after analysing the map file of the linker , > I find that the break of variable occur when I get message from my IPC > system V message queue ! > The msgrcv function can write one byte ( perhaps more ??) after the > buffer , and only with the arm-gcc ! > Sounds like an unaligned access problem. ARM does not support (half-)word accesses on non (half-)word aligned addresses.
Try 'echo 4 > /proc/cpu/alignment' to generate a SIGBUS when an unaligned access is attempted (the default for this setting is '0' ignoring unaligned access exceptions). Or 'echo 1 > /proc/cpu/alignment' to fixup unaligned accesses in the exception handler (or better make sure that all variables in your software are aligned to the proper boundary). Lothar Wassmann -- ___________________________________________________________ Ka-Ro electronics GmbH | Pascalstraße 22 | D - 52076 Aachen Phone: +49 2408 1402-0 | Fax: +49 2408 1402-10 Geschäftsführer: Matthias Kaussen Handelsregistereintrag: Amtsgericht Aachen, HRB 4996 www.karo-electronics.de | [EMAIL PROTECTED] ___________________________________________________________
-- ptxdist mailing list [email protected]
