public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Jonathan Larmour <jlarmour@redhat.com>
To: Jean-Claude Guiton <jean-claude.guiton@elios-informatique.fr>
Cc: ecos-discuss@sourceware.cygnus.com
Subject: Re: [ECOS] Compilation of ECOS with new system functions
Date: Mon, 22 Jan 2001 08:51:00 -0000	[thread overview]
Message-ID: <3A6C64F5.AE5A454F@redhat.com> (raw)
In-Reply-To: <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

      reply	other threads:[~2001-01-22  8:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-22  8:42 Jean-Claude Guiton
2001-01-22  8:51 ` Jonathan Larmour [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3A6C64F5.AE5A454F@redhat.com \
    --to=jlarmour@redhat.com \
    --cc=ecos-discuss@sourceware.cygnus.com \
    --cc=jean-claude.guiton@elios-informatique.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).