All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joe Lorenz <joe.lorenz@plexxi.com>
To: kexec@lists.infradead.org
Subject: kexec x86_64 - Unhandled rela relocation: R_X86_64_PLT32
Date: Mon, 09 Jan 2012 19:18:20 -0500	[thread overview]
Message-ID: <4F0B83CC.6010007@plexxi.com> (raw)

Help needed, please:

Sandy Bridge.
2.6.27.21 kernel
x86_64 toolchain built from crosstools-ng.
Using relocatable bzImage as first kernel as well as crash kernel.

# cat /proc/cmdline
rw root=/dev/sda3 rootwait console=ttyS0,38400 crashkernel=128M@16M

# kexec -l /boot/bzImage --reuse-cmdline
Unhandled rela relocation: R_X86_64_PLT32

Why??


I fooled around in kexec-elf-rel-x86_64.c and noticed there's no case for that 
r_type, so I added it as a fall-through to one of the existing ones. Then I got 
this:

# kexec -l /boot/bzImage --reuse-cmdline
Unhandled rela relocation: R_X86_64_GOTPCREL

Strange.
So I added that to the fallthrough, and then suddenly it seemed as if the crash 
kernel was getting loaded OK (no error messages anymore).

But then I tried:

# kexec -l /boot/bzImage --reuse-cmdline
# kexec -e
[  952.817842] md: stopping all md devices.
[  953.818808] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[  953.961590] igb 0000:02:00.0: PME# enabled
[  953.962395] igb 0000:02:00.0: PME# enabled
[  953.976468] Starting new kernel

After several seconds pause, it ended up back at GRUB, which I didn't expect.

Any help would be most appreciated - thanks.


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

                 reply	other threads:[~2012-01-10  0:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4F0B83CC.6010007@plexxi.com \
    --to=joe.lorenz@plexxi.com \
    --cc=kexec@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.