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

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

blaisorblade_spam@yahoo.it said:
> 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.

I didn't reject it so much as I put it aside for the moment because I didn't
understand it.

Your explanations, then and now, make sense, so I'm going to have another
look at it for my next 2.6 patch.

				Jeff



-------------------------------------------------------
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

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

Alle 23:38, martedì 30 marzo 2004, Jeff Dike ha scritto:
> blaisorblade_spam@yahoo.it said:
> > 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.
>
> I didn't reject it so much as I put it aside for the moment because I
> didn't understand it.
>
> Your explanations, then and now, make sense, so I'm going to have another
> look at it for my next 2.6 patch.

Wait a moment (maybe you already understood this but I'm not sure): what I 
suggest *now* is much *more* than the patch I had at that time - that one was 
not enough (i.e. with that you get /proc/kallsyms full, but having wrong 
addresses)!

-- 
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\x1470&alloc_id638&opÌk
_______________________________________________
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

* Re: [uml-devel] Re: Vmlinux - linux linking stages & /proc/kallsyms empty
  2004-03-31 18:42   ` BlaisorBlade
@ 2004-03-31 21:04     ` Jeff Dike
  0 siblings, 0 replies; 4+ messages in thread
From: Jeff Dike @ 2004-03-31 21:04 UTC (permalink / raw)
  To: BlaisorBlade; +Cc: user-mode-linux-devel

blaisorblade_spam@yahoo.it said:
> Wait a moment (maybe you already understood this but I'm not sure):
> what I  suggest *now* is much *more* than the patch I had at that time
> - that one was  not enough (i.e. with that you get /proc/kallsyms
> full, but having wrong  addresses)! 

Yeah, but at least you're explaining things, which you didn't do with the
combo patch that I mostly applied last time.

I haven't checked whether you're explaining everything that I don't understand
yet :-)

				Jeff



-------------------------------------------------------
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