Ok I'll try
Thanks a lot.
I'll give you feedback

Regards


In data venerdì 26 marzo 2010 10:57:05, Andrew Stubbs ha scritto:
: > Fabio,
> 
> I hadn't noticed the problem because I've been using uImage.bin kernels
> (because they are compatible with the loader on my board).
> 
> I have reproduced the problem, but I don't have a fix for it. I think
> the problem is that 'elf32-shbig-linux' should be 'elf32-sh-fdpic' in
> this case.
> 
> BTW, I forgot to say, you'll need to enable the FDPIC binary loader, and
> it doesn't work without this patch:
> 
> diff --git a/arch/sh/include/asm/elf.h b/arch/sh/include/asm/elf.h
> index ac04255..b2fefb3 100644
> --- a/arch/sh/include/asm/elf.h
> +++ b/arch/sh/include/asm/elf.h
> @@ -211,15 +211,17 @@ extern void __kernel_vsyscall;
> 
>   #define VSYSCALL_AUX_ENT                                       \
>          if (vdso_enabled)                                       \
> -               NEW_AUX_ENT(AT_SYSINFO_EHDR, VDSO_BASE);
> +               NEW_AUX_ENT(AT_SYSINFO_EHDR, VDSO_BASE);        \
> +       else                                                    \
> +               NEW_AUX_ENT(AT_IGNORE, 0); /* Match AT_VECTOR_SIZE_ARCH. 
>  */ #else
> -#define VSYSCALL_AUX_ENT
> +#define VSYSCALL_AUX_ENT NEW_AUX_ENT(AT_IGNORE, 0);
>   #endif /* CONFIG_VSYSCALL */
> 
>   #ifdef CONFIG_SH_FPU
>   #define FPU_AUX_ENT    NEW_AUX_ENT(AT_FPUCW, FPSCR_INIT)
>   #else
> -#define FPU_AUX_ENT
> +#define FPU_AUX_ENT    NEW_AUX_ENT(AT_IGNORE, 0);
>   #endif
> 
>   extern int l1i_cache_shape, l1d_cache_shape, l2_cache_shape;
> 
> I've also submitted this to the kernel list.
> 
> Hope that helps,
> 
> Andrew
> 
> On 26/03/10 05:59, Fabio Giovagnini wrote:
> > Hi, Andrew,
> >
> > I execueted:
> >
> > $(MAKE) -C $(LINUX_DIR) ARCH=sh CROSS_COMPILE=sh-uclinux- zImage
> >
> > and I get this error
> >
> > sh-uclinux-objcopy -O binary -R .note -R .note.gnu.build-id -R .comment
> > -R .stab -R .stabstr -S -R .empty_zero_page vmlinux
> > arch/sh/boot/compressed/vmlinux.bin
> >
> > (cat arch/sh/boot/compressed/vmlinux.bin | gzip -f -9 >
> > arch/sh/boot/compressed/vmlinux.bin.gz) || (rm -f
> > arch/sh/boot/compressed/vmlinux.bin.gz ; false)
> >
> > sh-uclinux-ld -EB -r --format binary --oformat elf32-shbig-linux -T
> > arch/sh/boot/compressed/vmlinux.scr
> > arch/sh/boot/compressed/vmlinux.bin.gz -o arch/sh/boot/compressed/piggy.o
> >
> > sh-uclinux-ld -EB --oformat elf32-shbig-linux -Ttext 0x0c800000 -e
> > startup -T arch/sh/boot/compressed/../../kernel/vmlinux.lds
> > arch/sh/boot/compressed/head_32.o arch/sh/boot/compressed/misc.o
> > arch/sh/boot/compressed/cache.o arch/sh/boot/compressed/piggy.o
> > /home/fgiovagnini/sh7203/sh7203-uclinux-4.4-143/build/target/bin/../lib/g
> >cc/sh-uclinux/4.4.1/libgcc.a -o arch/sh/boot/compressed/vmlinux
> >
> > sh-uclinux-ld:
> > /home/fgiovagnini/sh7203/sh7203-uclinux-4.4-143/build/target/bin/../lib/g
> >cc/sh-uclinux/4.4.1/libgcc.a(_ashiftlt.o): attempt to mix FDPIC and
> > non-FDPIC objects
> >
> > sh-uclinux-ld: failed to merge target specific data of file
> > /home/fgiovagnini/sh7203/sh7203-uclinux-4.4-143/build/target/bin/../lib/g
> >cc/sh-uclinux/4.4.1/libgcc.a(_ashiftlt.o)
> >
> > sh-uclinux-ld:
> > /home/fgiovagnini/sh7203/sh7203-uclinux-4.4-143/build/target/bin/../lib/g
> >cc/sh-uclinux/4.4.1/libgcc.a(_lshiftrt.o): attempt to mix FDPIC and
> > non-FDPIC objects
> >
> > sh-uclinux-ld: failed to merge target specific data of file
> > /home/fgiovagnini/sh7203/sh7203-uclinux-4.4-143/build/target/bin/../lib/g
> >cc/sh-uclinux/4.4.1/libgcc.a(_lshiftrt.o)
> >
> > In data mercoledì 24 marzo 2010 17:39:59, Andrew Stubbs ha scritto:
> > : > On 24/03/10 05:32, Fabio Giovagnini wrote:
> >  > > Could yuo give me the permission to enabling me for downloading
> >  >
> >  > Hi Fabio,
> >  >
> >  >
> >  >
> >  > I could not give you permission to see the page I linked. :(
> >  >
> >  >
> >  >
> >  > However, I have added the installer downloads to your
> >  >
> >  > support.codesourcery.com homepage. Log in and you should see them:
> >  >
> >  >
> >  >
> >  > renesas-4.4-141-sh-uclinux.bin
> >  >
> >  > renesas-4.4-141-sh-uclinux.exe
> >  >
> >  >
> >  >
> >  > Let me know if you need any sources.
> >  >
> >  >
> >  >
> >  > We plan to make the final release next month, so please let me know of
> >  >
> >  > any issues you encounter as soon as possible.
> >  >
> >  >
> >  >
> >  > Thanks
> >  >
> >  >
> >  >
> >  > Andrew
> >
> > --
> >
> > Fabio Giovagnini
> >
> > Aurion s.r.l.
> >
> > P.I e C.F.
> >
> > 00885711200
> >
> > Tel. +39.051.594.78.24
> >
> > Cell. +39.335.83.50.919
> 

-- 
Fabio Giovagnini

Aurion s.r.l.
P.I e C.F.
00885711200
Tel. +39.051.594.78.24
Cell. +39.335.83.50.919
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to