public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Michael Driscoll <fenris@ulfheim.net>
To: Linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: Multiple symbols same address in vmlinux map file? huh?
Date: Wed, 6 Aug 2003 15:09:01 -0600	[thread overview]
Message-ID: <200308061509.01206.fenris@ulfheim.net> (raw)
In-Reply-To: <Pine.LNX.4.53.0308061000280.9051@chaos>

On Wednesday 06 August 2003 08:32, Richard B. Johnson wrote:
> On Wed, 6 Aug 2003, Andy Winton wrote:
> > nm vmlinux-2.4.18-14  | awk 'BEGIN{oldval=01;} { if ($1==oldval) {
> > if(plast) { print "\n"; print oldrow;} print $0; plast=0} else plast=1;
> > oldrow=$0; oldval=$1}' - | more

[snip]

> c01fd9c0 D i8259A_lock
> c01fd9e0 d i8259A_irq_type
>
> These are (correctly) at different addresses, but the static
> structure is still visible, which must not happen! So, you
> have certainly discovered something that's not right. Perhaps
> the 'd' stuff is "really" not visible? If so, what 'th..???

In nm(1) output, uppercase symbol types means the name is externally 
available, lowercase symbol means it is local.

Even if an object is local, the object file still knows its name (for ELF, 
anyways).  Finding local "static" variables would be very annoying otherwise, 
for porting code to a threaded application :)

-- 
Michael Driscoll, fenris@ulfheim.net
"A noble spirit embiggens the smallest man" -- J. Springfield

      reply	other threads:[~2003-08-06 21:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-06 13:39 Multiple symbols same address in vmlinux map file? huh? Andy Winton
2003-08-06 13:51 ` Kai Germaschewski
2003-08-06 14:32 ` Richard B. Johnson
2003-08-06 21:09   ` Michael Driscoll [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=200308061509.01206.fenris@ulfheim.net \
    --to=fenris@ulfheim.net \
    --cc=linux-kernel@vger.kernel.org \
    /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