trab: make trab_fkt standalone code independent of libgcc
PATCH 1/1 trab: make trab_fkt standalone code independent of libgcc
Use our own local functions in lib_arm/ instead.
---
This patch avoids compilation problems with recent toolchains like:
arm-linux-ld: ERROR: Source object /opt/eldk-4.2-2008-12-07/usr/bin/../lib/gcc/arm-linux-gnueabi/4.2.2/libgcc.a(_udivsi3.o) has EABI version 4, but target trab_fkt has EABI version 0
arm-linux-ld: failed to merge target specific data of file /opt/eldk-4.2-2008-12-07/usr/bin/../lib/gcc/arm-linux-gnueabi/4.2.2/libgcc.a(_udivsi3.o)
board/trab/Makefile | 3 ++- board/trab/trab_fkt.c | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletions(-)
board/trab/Makefile +2 -1
@@ -51,7 +51,8 @@ $(obj)trab_fkt.srec: $(OBJS_FKT) $(LIB) $(LD) -g -Ttext $(LOAD_ADDR) -o $(<:.o=) -e trab_fkt $^ $(LIB) \ -L$(obj)../../examples -lstubs \ -L$(obj)../../lib_generic -lgeneric \ - -L$(gcclibdir) -lgcc + $(obj)../../lib_arm/div0.o \ + $(obj)../../lib_arm/_*.o $(OBJCOPY) -O srec $(<:.o=) $@ $(obj)trab_fkt.bin: $(obj)trab_fkt.srec
board/trab/trab_fkt.c +6 -0
@@ -294,6 +294,12 @@ int trab_fkt (int argc, char *argv[])return 1 ; } +void hang (void ) +{ +puts ("### ERROR ### Please RESET the board ###\n" ); +for (;;); +} +int do_info (void ) {printf ("Stand-alone application for TRAB board function test\n" );
Signature · 1 line
1.6.0.4
PATCH 1/1 trab: make trab_fkt standalone code independent of libgcc
Quoted 1 line · Wolfgang Denk
Use our own local functions in lib_arm/ instead.
I've plan to remove the libgcc depedancy at all for ARM so I'll prefer to do it this way if possible
Patch neartly ready
I'll send it soon
Best Regards,
J.
PATCH 1/1 trab: make trab_fkt standalone code independent of libgcc
Dear Jean-Christophe PLAGNIOL-VILLARD,
Quoted 4 lines · In message <[email protected]> you wrote:
Quoted 1 line · Wolfgang Denk
Use our own local functions in lib_arm/ instead.
I've plan to remove the libgcc depedancy at all for ARM so I'll prefer to do it this way if possible
You will have to handle trabfkt separately anyway. I want to get -rc1 out now, so I will apply this patch. Feel free to replace it with something better as soon as you have it ready.
Quoted 2 lines
Patch neartly ready
I'll send it soon
Thanks.
Best regards,
Wolfgang Denk
Signature · 7 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Niklaus Wirth has lamented that, whereas Europeans pronounce his name correctly (Ni-klows Virt), Americans invariably mangle it into (Nick- les Worth). Which is to say that Europeans call him by name, but Americans call him by value.