All of lore.kernel.org
 help / color / mirror / Atom feed
* kexec x86_64 - Unhandled rela relocation: R_X86_64_PLT32
@ 2012-01-10  0:18 Joe Lorenz
  0 siblings, 0 replies; only message in thread
From: Joe Lorenz @ 2012-01-10  0:18 UTC (permalink / raw)
  To: kexec

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-01-10  0:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-10  0:18 kexec x86_64 - Unhandled rela relocation: R_X86_64_PLT32 Joe Lorenz

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.