public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Compilation of ECOS with new system functions
@ 2001-01-22  8:42 Jean-Claude Guiton
  2001-01-22  8:51 ` Jonathan Larmour
  0 siblings, 1 reply; 2+ messages in thread
From: Jean-Claude Guiton @ 2001-01-22  8:42 UTC (permalink / raw)
  To: ecos-discuss

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 ?

Thanks,

Jean-Claude


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] Compilation of ECOS with new system functions
  2001-01-22  8:42 [ECOS] Compilation of ECOS with new system functions Jean-Claude Guiton
@ 2001-01-22  8:51 ` Jonathan Larmour
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Larmour @ 2001-01-22  8:51 UTC (permalink / raw)
  To: Jean-Claude Guiton; +Cc: ecos-discuss

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-01-22  8:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-22  8:42 [ECOS] Compilation of ECOS with new system functions Jean-Claude Guiton
2001-01-22  8:51 ` Jonathan Larmour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).