This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: Re:SH archtecture ldscript fix
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Andrew Lunn <andrew at lunn dot ch>
- Cc: ysato at users dot chez-thomas dot org, sourceforge dot jp at lunn dot ch,eCos patches <ecos-patches at sources dot redhat dot com>
- Date: 29 Jul 2003 14:41:47 -0600
- Subject: Re: Re:SH archtecture ldscript fix
- Organization: MLB Associates
- References: <20030729204626.GB4328@lunn.ch>
On Tue, 2003-07-29 at 14:46, Andrew Lunn wrote:
> > 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?
It's probably a compiler version (or target specific) problem.
The change seems safe enough in any case.
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates