From: Bernhard Walle <bernhard.walle@gmx.de>
To: gdb@sourceware.org
Subject: Re: gdb 6.5 does not open linux kernel core file properly
Date: Sun, 03 Jun 2007 16:37:00 -0000 [thread overview]
Message-ID: <20070603163826.GA7115@mail1.bwalle.de> (raw)
In-Reply-To: <q4eaj4-cj6.ln1@news.bwalle.de>
* Bernhard Walle <bernhard.walle@gmx.de> [2007-06-03 11:27]:
> Vivek Goyal wrote:
> > I am using GNU gdb Red Hat Linux (6.5-5.fc6rh).
> >
> > This problem is not present in gdb 6.4. It works perfectly fine.
>
> I found out that the error appeared with following change:
>
> cvs diff -u -D "2006-01-24 22:30:00 -0000" -D "2006-01-24 22:40:00 -0000"
>
> The problem is svr4_solib_create_inferior_hook() -> svr4_relocate_main_executable().
> If I comment out this function, everything works fine. ;-)
Should the kernel not mark it's ELF type to ET_DYN (but then it's
difficult to distinguish between a relocatable kernel and a
unrelocatable kernel)? Or should we add a .interp section to the
kernel (but I don't think it's a good idea, it would be more a
workaround, IMO).
However, the PC which is used to relocate the binary is completely
wrong because it's in physical virtual space and the start address
is in physical address space. And even if it would be transferred to
physical address space, it would not mark the beginning of the kernel
(entry point), so it's unusable for relocation.
Thanks,
Bernhard
prev parent reply other threads:[~2007-06-03 16:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-01 10:42 Vivek Goyal
2007-06-03 9:35 ` Bernhard Walle
2007-06-03 16:37 ` Bernhard Walle [this message]
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=20070603163826.GA7115@mail1.bwalle.de \
--to=bernhard.walle@gmx.de \
--cc=gdb@sourceware.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