fix for arm target.ld

Robin Farine robin.farine@acn-group.ch
Tue Aug 27 07:09:00 GMT 2002


The tool chain I'm using calls the preprocessor with -Darm by default
(stupid, I know, but ..it happens) and thus transforms ".note.arm.ident"
into ".note. 1 .ident".

To generate "target.ld", each architecture provides it own set of CPP
macros so I thought that this precise case doesn't need the
automatically provided architecture CPP flags. Moreover, if an
architecture needs some flags during this step, the CDL file could
explicitly define them.

But hey, if this patch causes any problem, please feel free to open the
(trashcan) window and throw it away, I'm just trying to respect the
terms of the GPL (of which I don't understand much, lawyer stuff ... ok
time to click "send")

On Tue, 2002-08-27 at 12:53, Gary Thomas wrote:
> What's the purpose of this change?  Why is it necessary?
> 
> On Tue, 2002-08-27 at 02:49, Robin Farine wrote:
> > Index: packages/hal/arm/arch/current/ChangeLog
> > ===================================================================
> > RCS file: /home/cvs/eCos/base/packages/hal/arm/arch/current/ChangeLog,v
> > retrieving revision 1.1.1.6
> > retrieving revision 1.4
> > diff -u -r1.1.1.6 -r1.4
> > --- packages/hal/arm/arch/current/ChangeLog	26 Aug 2002 14:56:22 -0000	1.1.1.6
> > +++ packages/hal/arm/arch/current/ChangeLog	27 Aug 2002 08:33:02 -0000	1.4
> > @@ -1,3 +1,8 @@
> > +2002-08-27  Robin Farine  <robin.farine@acn-group.ch>
> > +
> > +	* cdl/hal_arm.cdl: Reduces unwanted substitutions when
> > +	generating target.ld.
> > +
> >  2002-08-22  Mark Salter  <msalter@redhat.com>
> >  
> >  	* src/arm.ld: Add .note.arm.ident section used by tools to identify
> > Index: packages/hal/arm/arch/current/cdl/hal_arm.cdl
> > ===================================================================
> > RCS file: /home/cvs/eCos/base/packages/hal/arm/arch/current/cdl/hal_arm.cdl,v
> > retrieving revision 1.1.1.5
> > retrieving revision 1.2
> > diff -u -r1.1.1.5 -r1.2
> > --- packages/hal/arm/arch/current/cdl/hal_arm.cdl	26 Aug 2002 14:56:22 -0000	1.1.1.5
> > +++ packages/hal/arm/arch/current/cdl/hal_arm.cdl	27 Aug 2002 08:25:12 -0000	1.2
> > @@ -86,7 +86,7 @@
> >  
> >      make {
> >          <PREFIX>/lib/target.ld: <PACKAGE>/src/arm.ld
> > -        $(CC) -E -P -Wp,-MD,target.tmp -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
> > +        $(CC) -E -P -Wp,-MD,target.tmp -undef -xc $(INCLUDE_PATH) $(CFLAGS) -o $@ $<
> >          @echo $@ ": \\" > $(notdir $@).deps
> >          @tail +2 target.tmp >> $(notdir $@).deps
> >          @echo >> $(notdir $@).deps
> > 
> > 
> 
> -- 
> ------------------------------------------------------------
> Gary Thomas                  |
> eCosCentric, Ltd.            |  
> +1 (970) 229-1963            |  eCos & RedBoot experts
> gthomas@ecoscentric.com      |
> http://www.ecoscentric.com/  |
> ------------------------------------------------------------
> 
> 




More information about the Ecos-patches mailing list