From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bart Veer To: oouchi@cns.canon.co.jp Cc: ecos-discuss@cygnus.com Subject: [ECOS] Re: Can I use libtarget.a as library for other environment Date: Mon, 14 Dec 1998 03:43:00 -0000 Message-id: <199812121926.TAA29611@sheesh.cygnus.co.uk> In-reply-to: < 3670DA21.FE701860@cns.canon.co.jp > (message from Masatomo Ouchion Fri, 11 Dec 1998 17:38:57 +0900) References: <3670DA21.FE701860@cns.canon.co.jp> <3670DA21.FE701860@cns.canon.co.jp> X-SW-Source: 1998/msg00094.html >>>>> "oouchi" == Masatomo Ouchi writes: oouchi> libtarget.a can be used as library for other development oouchi> tool? oouchi> I use "CodeWarrior for Embedded Systems(Targeting oouchi> PowerPC)" by Metrowerks on Windows NT. oouchi> I tryed to link libtarget.a made by eCos with other file oouchi> in CodeWarrior. oouchi> CoreWarrior said there are warning and errors. oouchi> o warnings are following section is unknown and the oouchi> section ignored. .stab .stbstr oouchi> o errors are following is undefined oouchi> __udivdi3 hal_interrupt_handlers hal_interrupt_data oouchi> hal_interrupt_objects hal_vsr_table __CTOR_END__ oouchi> __CTOR_LIST__ oouchi> Q.1 To begin with, my trial is legal and possible ? Q.2 If oouchi> yes, what must I do? Are there other objects to be linked? We do not expect application developers to use any specific development environment, such decisions should be left to the individual developer. However we do require that the underlying tools used to develop applications, in particular the compiler and the linker, provide certain basic functionality. Suitable tools are freely available on the sourceware ftp site. At a guess, the warnings about .stab and .stbstr probably mean that the wrong linker is being invoked. The errors about undefined symbols definitely mean that the linker is not being invoked with the correct arguments, in particular the generated linker script target.ld is not being used. The eCos documentation makes it clear what options need to be passed to the linker. I have never used CodeWarrior and know very little about its capabilities. I would hope that it provides functionality such as specifying which linker gets used and how it gets invoked, but I cannot speak for Metroworks. Bart Veer // eCos net maintainer