linux-um archives
 help / color / mirror / Atom feed
From: BlaisorBlade <blaisorblade_spam@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net,
	Jeff Dike <jdike@addtoit.com>
Subject: [uml-devel] Vmlinux - linux linking stages & /proc/kallsyms empty
Date: Tue, 30 Mar 2004 19:25:02 +0100	[thread overview]
Message-ID: <200403302025.02276.blaisorblade_spam@yahoo.it> (raw)

Jeff, is there any good reason to first link everything in vmlinux and then 
link things properly in linux? Because I have reasons (i.e. bugs) against 
this.

--THE BUGS
**Symptom: /proc/kallsyms is empty. Any stack dump cannot contain the symbol 
names.

**Reason: This because the vmlinux link script is wrong (you rejected the 
patch I sent you time ago, was in the patchset). But kallsyms must contain 
the true addresses of the kernel symbols; since they change between vmlinux 
and linux (if they didn't change, the second step would be useless), they 
cannot be correct. I think that even System.map symbols do not match.

**Fix: So, we actually need to make vmlinux have the correct addresses, i.e. 
avoid the two-pass linking.

--HOW TO FIX THIS: 
You specify the -r flags for vmlinux, so you could as well pass the extra 
objects in and the right link script.

--WHY SHOULD WE BOTHER?
Because it is a fix and it is easy to fix.

Any comments?
-- 
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

             reply	other threads:[~2004-03-30 18:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-30 18:25 BlaisorBlade [this message]
2004-03-30 21:38 ` [uml-devel] Re: Vmlinux - linux linking stages & /proc/kallsyms empty Jeff Dike
2004-03-31 18:42   ` BlaisorBlade
2004-03-31 21:04     ` Jeff Dike

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=200403302025.02276.blaisorblade_spam@yahoo.it \
    --to=blaisorblade_spam@yahoo.it \
    --cc=jdike@addtoit.com \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /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