All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] weak functions not being over-ridden (location dependent)
Date: Thu, 27 Nov 2008 14:50:03 -0500	[thread overview]
Message-ID: <200811271450.04229.vapier@gentoo.org> (raw)
In-Reply-To: <492DA460.9070404@gmail.com>

On Wednesday 26 November 2008 14:32:48 Graeme Russ wrote:
> Wolfgang Denk wrote:
> > In message ... you wrote:
> >>> I have a very strange problem - I am trying to define a weak function,
> >>> but whether or not the function is overridden depends on where I put
> >>> the overriding function. Case in point:
> >>
> >> You are not the only one, I have seen this also with the LED interface
> >> in U-boot.
> >
> > I think this has been answered before: it doesn't work when the
> > functions are in libraries. It only works when the respective
> > functions are in explicitely linked object files.
>
> This doesn't seem right - reset_cpu () will be in a library no matter where
> I put it (either libsc520.a or libeNET.a)

the linker treates archives differently from shared libraries by design.  
"linked objects" refers to .o object files, not .a archives.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20081127/0a34bae5/attachment.pgp 

      parent reply	other threads:[~2008-11-27 19:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-26 12:02 [U-Boot] weak functions not being over-ridden (location dependent) Graeme Russ
2008-11-26 13:01 ` Remy Bohmer
2008-11-26 15:12   ` Wolfgang Denk
2008-11-26 19:32     ` Graeme Russ
2008-11-26 19:42       ` Ben Warren
2008-11-26 20:06         ` Graeme Russ
2008-11-26 20:48           ` Ben Warren
2008-11-27 19:50       ` Mike Frysinger [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=200811271450.04229.vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.