[superh-gnu-discuss] unaligned userspace access
Andrea Baldini
andrea.baldini at spesonline.com
Wed Jun 1 09:56:36 UTC 2011
On Friday 15 April 2011 17:25:04 Andrew Stubbs wrote:
> On 15/04/11 16:18, Andrea Baldini wrote:
> >> Did you build busybox with the same toolchain? You do need a busybox
> >> built with FDPIC to work on this target, of course.
> >>
> >> Andrew
> >
> > Yes, i built everything with the same toolchain.
>
> Did you build it statically linked or dynamically linked? (If you don't
> know 'file busybox' should tell you on most Linux distros.)
>
> If you built it to use dynamic libraries, how did you install the system
> libraries?
>
> Andrew
Here again :)
Sorry for leaving you without an answer last time.
I got a working busybox compiling it statically and it seemed running without
problems..the kernel booted and the init user-space process started.
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?
Best regards
Andrea
--
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