Symbol: reset_vga is in a bss section cannot set

Bug #576077 reported by Roger R. Cruz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kexec-tools (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: kexec-tools

I'm running privately compiled Ubuntu 10.4 and a privately compiled version of kexec-tools-2.0.1-1ubuntu3.diff applied to kexec-tools-2.0.1. When I try to run kexec via the following command

/sbin/kexec -p --args-linux --append=root=/dev/mapper/NxVG-NxDisk5 ro quiet splash kdump_needed irqpoll maxcpus=1 reset_devices kdump-xenversion=3.4.2 kdump-linuxversion=2.6.32-orc --ramdisk=/boot/initrd.img-2.6.32-orc /boot/vmlinuz-2.6.32-orc-kdump

I get the following error:

Symbol: reset_vga is in a bss section cannot set

The crashkernel being downloaded is also a privately build Ubuntu 10.4 with SMP disabled, and kernel crash dumps enabled.

This used to work fine in Ubuntu 9.04 with kexec-tools-2.0.0 (again, all privately compiled from sources).

Any help would be appreciated

Thanks
Roger R. Cruz

Revision history for this message
Roger R. Cruz (roger-cruz-virtualcomputer) wrote :

I got through this problem after several hours of debugging the ELF format and the purgatory code. The symbol information for this variables appears to point to a table not allowed by kexec. By adding the compiler flag "no-zero-initialized-in-bss", I was allowed to install the kernel.

diff -r 5237ea698c92 kexec-tools-2.0.1/purgatory/Makefile
--- a/kexec-tools-2.0.1/purgatory/Makefile
+++ b/kexec-tools-2.0.1/purgatory/Makefile
@@ -47,7 +47,7 @@
 $(PURGATORY): CC=$(TARGET_CC)
 $(PURGATORY): CFLAGS+=$(PURGATORY_EXTRA_CFLAGS) \
         $($(ARCH)_PURGATORY_EXTRA_CFLAGS) \
- -Os -fno-builtin -ffreestanding
+ -Os -fno-builtin -ffreestanding -fno-zero-initialized-in-bss

 $(PURGATORY): CPPFLAGS=$($(ARCH)_PURGATORY_EXTRA_CFLAGS) \
    -I$(srcdir)/purgatory/include \

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.