public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Peng Dai <dai@mclinux.com>
To: linux-kernel@vger.kernel.org
Subject: System.map with symbols from discarded sections
Date: Fri, 08 Dec 2000 12:13:24 -0500	[thread overview]
Message-ID: <3A3116B4.A80A7882@mclinux.com> (raw)

Quite a few functions in the 2.3 kernels and up are marked as __exit.
This puts the functions in the .text.exit section that is marked as
DISCARD
in vmlinux.lds.

It turns out that if the function is static, ld never puts it into the
symbol
table of vmlinux; however, if the function is global, ld throws it into
the
*ABS* section of vmlinux with an address most likely lower than
PAGE_OFFSET.
These symbols are included in System.map since they are not 'a' type but
'A'
type. An example of which is 'acpi_exit', as shown below,

00000000 A acpi_exit
c0100000 A _text
c0100000 t startup_32
c0100000 T _stext
...

It seems rather harmless except it breaks the readprofile utitlity which
reads
the System.map. I am wondering if ld is behaving correctly.

Regards,
Peng

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

                 reply	other threads:[~2000-12-08 17:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=3A3116B4.A80A7882@mclinux.com \
    --to=dai@mclinux.com \
    --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