linux-um archives
 help / color / mirror / Atom feed
* [uml-devel] Vmlinux - linux linking stages & /proc/kallsyms empty
@ 2004-03-30 18:25 BlaisorBlade
  2004-03-30 21:38 ` [uml-devel] " Jeff Dike
  0 siblings, 1 reply; 4+ messages in thread
From: BlaisorBlade @ 2004-03-30 18:25 UTC (permalink / raw)
  To: user-mode-linux-devel, Jeff Dike

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-03-31 20:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-30 18:25 [uml-devel] Vmlinux - linux linking stages & /proc/kallsyms empty BlaisorBlade
2004-03-30 21:38 ` [uml-devel] " Jeff Dike
2004-03-31 18:42   ` BlaisorBlade
2004-03-31 21:04     ` Jeff Dike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox