[superh-gnu-discuss] unaligned userspace access

Andrea Baldini andrea.baldini at spesonline.com
Wed Jun 1 13:58:12 UTC 2011


On Wednesday 01 June 2011 14:53:29 Andrew Stubbs wrote:
> On 01/06/11 10:56, Andrea Baldini wrote:
> > It seems that the problem related to the "unaligned userspace access"
> > error occurs when i compile the sources using dynamic libraries.
> > Going back to your question about how did i install the libraries, i put
> > the contents of the toolchain libc directory in the target standard
> > paths (/lib and /usr).
> > Am i supposed to specify the rpath and dynamic-linker options?
> > Should i use other special compiler or linker flags?
> 
> No, that all sounds right to me. Do other dynamically linked programs
> work? Say, simple ones like hello world?
> 
> Andrew


Nope.. this is what happens:

/ # ./helloworld-sh                                                                                                                                                                             
./helloworld-sh: cache 'Fixing up unaligned userspace access in "helloworld-
sh" pid=805 pc=0x0e925ab0 ins=0x4308                                                                                
/etc/ld.so.cacheFixing up unaligned userspace access in "helloworld-sh" 
pid=805 pc=0x0e925ab0 ins=0x4308                                                                                        
' is corrupt                                                                                                                                                                                    
Sending SIGBUS to "helloworld-sh" due to unaligned access (PC e925ab0 PR 
e925a9a)


-- 
Andrea Baldini

Elettronica di Processo

 

SPES. S.c.p.a
Via  Lamberto Corsi, 43
60044 Fabriano (AN)
tel. +39 0732 25291
fax +39 0732 2529441

 <mailto:andrea.baldini at spesonline.com> andrea.baldini at spesonline.com

 <http://www.spesonline.com> www.spesonline.com



More information about the superh-gnu-discuss mailing list