From: ebiederm@xmission.com (Eric W. Biederman)
To: Maxim Levitsky <maximlevitsky@gmail.com>
Cc: linux-kernel@vger.kernel.org, Vivek Goyal <vgoyal@in.ibm.com>,
Kexec Mailing List <kexec@lists.infradead.org>
Subject: Re: [BUG] i386 relocable kernel breakes /proc/kcore debugging
Date: Fri, 27 Jul 2007 19:58:56 -0600 [thread overview]
Message-ID: <m1fy39thjz.fsf@ebiederm.dsl.xmission.com> (raw)
In-Reply-To: <200707280443.44048.maximlevitsky@gmail.com> (Maxim Levitsky's message of "Sat, 28 Jul 2007 04:43:43 +0300")
Maxim Levitsky <maximlevitsky@gmail.com> writes:
> Hello,
>
> Today I noticed that gdb gets confused when I try to load a vmlinux image.
> gdb 'thinks' that all kernel symbols are below 0x80000000 , while they are at
> 0xC000....
>
> Turning CONFIG_RELOCATABLE off fixes that, so I assume that is the reason for
> that.
>
> I am using 2.6.23-rc1, although I don't think that older versions are better.
>
> Best regards,
> Maxim Levitsky
Weird.
Vivek could this be related to the problem of problematic core dumps we
were seeing earlier?
Eric
> PS:
> This is what gdb says:
>
> (gdb) disassemble sys_open
> Dump of assembler code for function sys_open:
> 0x8026fa60 <sys_open+0>: Cannot access memory at address 0x8026fa60
>
> While real address of sys_open is:
>
> [root@MAIN linux-2.6]# nm ./.obj/vmlinux | grep sys_open
> .........
> c016ea60 T sys_open
>
> Strange, but gdb recordnizes the above address directly:
>
> (gdb) disassemble 0xc016ea60
> Dump of assembler code for function sys_open:
> 0xc016ea60 <sys_open+0>: sub $0x4,%esp
> 0xc016ea63 <sys_open+3>: mov 0x10(%esp),%eax
> ...............
next parent reply other threads:[~2007-07-28 2:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200707280443.44048.maximlevitsky@gmail.com>
2007-07-28 1:58 ` Eric W. Biederman [this message]
2007-07-30 8:03 ` Vivek Goyal
2007-07-30 8:41 ` Jan Kratochvil
2007-07-30 9:32 ` Maxim Levitsky
2007-07-30 14:23 ` Eric W. Biederman
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=m1fy39thjz.fsf@ebiederm.dsl.xmission.com \
--to=ebiederm@xmission.com \
--cc=kexec@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maximlevitsky@gmail.com \
--cc=vgoyal@in.ibm.com \
/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
all inboxes | Powered by JetHome®