This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re:SH archtecture ldscript fix


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]