This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Compilation of ECOS with new system functions
- To: Jean-Claude Guiton <jean-claude dot guiton at elios-informatique dot fr>
- Subject: Re: [ECOS] Compilation of ECOS with new system functions
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Mon, 22 Jan 2001 16:51:01 +0000
- Cc: ecos-discuss at sourceware dot cygnus dot com
- Organization: Red Hat UK Ltd.
- References: <004201c08492$5feeefc0$7e08a8c0@acajou.elios-informatique.fr>
Jean-Claude Guiton wrote:
>
> Hello,
>
> I wish replace the standard function cyg_libc_invoke_main() by my function
> cyg_libc_invoke_main() that I put in the file
> packages/hal/powerpc/fads/v1_3_1/src/hal_diag.c. How the linker resolve the
> problem of two functions of same name ?
If you put it in that file (although I can't imagine why!), then you will
get two instances in the library libtarget.a. The linker will resolve to
the one it comes across first. Meaning if you recompile some object files,
it may start "choosing" the other one.
Not recommended!
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Un cheval, pas du glue. Pas du cheval, beaucoup du glue. || Opinions==mine