This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re:SH archtecture ldscript fix
- From: Andrew Lunn <andrew at lunn dot ch>
- To: ysato at users, sourceforge dot jp at lunn dot ch
- Cc: ecos-patches at sources dot redhat dot com
- Date: Tue, 29 Jul 2003 22:46:26 +0200
- Subject: Re:SH archtecture ldscript fix
> Because specification of bss is not good, an illegal binary is output.
>
> Index: arch/current/src/sh.ld
> ===================================================================
> RCS file: /cvs/ecos/ecos/packages/hal/sh/arch/current/src/sh.ld,v
> retrieving revision 1.16
> diff -u -r1.16 sh.ld
> --- arch/current/src/sh.ld 5 May 2003 09:13:46 -0000 1.16
> +++ arch/current/src/sh.ld 28 Jul 2003 11:47:40 -0000
> @@ -198,7 +198,7 @@
> #define SECTION_bss(_region_, _vma_, _lma_) \
> .bss _vma_ : _lma_ \
> { CYG_LABEL_DEFN(_bss_start) = ABSOLUTE (.); \
> - FORCE_OUTPUT; *(.dynbss) *(.bss) *(COMMON) \
> + FORCE_OUTPUT; *(.dynbss) *(.bss*) *(COMMON) \
> . = ALIGN(4); \
> CYG_LABEL_DEFN(_bss_end) = ABSOLUTE (.); } \
> > _region_
>
> --
> Yoshinori Sato
> <ysato@users.sourceforge.jp>
Please could you explain this patch a bit more?
I just tried compiling for the hs7729 board which is a sh3 based
device. I don't get any linker errors. I don't have any hardware so i
cannot download a test program to see if they actually work....
What sort of problems do you see?
Thanks
Andrew