[opensuse-kernel] kernel build debug infos missing/funnies
Hi All, I am not really a suse guru so I may miss something regarding the suse build process and the kernel debug infos delivery. Here is an example of the problem I bump into. Let's take a given suse version say 3.0.58-0.6.6.1 and focus on the 'default' flavor for i586. I download the 3 rpm's kernel-default-3.0.58-0.6.6.1.i586.rpm exploded in ./t1/ kernel-default-base-3.0.58-0.6.6.1.i586.rpm exploded in ./t2/ kernel-default-debuginfo-3.0.58-0.6.6.1.i586.rpm exploded in ./t3/
From there I got various modules (.ko) and I have expected to find a matching .ko.debug for a given .ko. for instance module 3c359.ko can be find in its two form.
CX08$ find ./t[1-3] | grep 3c359.ko ./t1/lib/modules/3.0.58-0.6.6-default/kernel/drivers/net/tokenring/3c359.ko ./t3/usr/lib/debug/lib/modules/3.0.58-0.6.6-default/kernel/drivers/net/tokenring/3c359.ko.debug Yet I got some discrepencies for other modules like 1) Missing .ko.debug CX08$ find ./t[1-3] | grep 3c574_cs.ko ./t1/lib/modules/3.0.58-0.6.6-default/kernel/drivers/net/pcmcia/3c574_cs.ko This one miss a .ko.debug yet it got all the debug info in the .ko that may explain why the .ko.debug ins not there CX08$ objdump -w -h ./t1/lib/modules/3.0.58-0.6.6-default/kernel/drivers/net/pcmcia/3c574_cs.ko Sections: Idx Name Size VMA LMA File off Algn 0 .note.gnu.build-id 00000024 00000000 00000000 00000034 2**2 1 .text 00001bd4 00000000 00000000 00000060 2**4 2 .exit.text 0000000a 00000000 00000000 00001c34 2**0 ..... 17 .debug_abbrev 00000858 00000000 00000000 00003a70 2**0 18 .debug_info 00018bf8 00000000 00000000 000042c8 2**0 19 .debug_line 000019e7 00000000 00000000 0001cec0 2**0 Is that expect to get some module .ko with debug info in the kernel-default-3.0.58-0.6.6.1.i586.rpm ? 2) .ko.debug with no matching .ko CX08$ find ./t[1-3] | grep 3c501.ko ./t3/usr/lib/debug/lib/modules/3.0.58-0.6.6-default/kernel/drivers/net/3c501.ko.debug This one is a real .ko.debug i.e it got only debug infos and not .text etc... Sections: Idx Name Size VMA LMA File off Algn 0 .note.gnu.build-id 00000024 00000000 00000000 00000034 2**2 1 .text 00000ce0 00000000 00000000 00000060 2**4 2 .exit.text 00000028 00000000 00000000 00000060 2**0 ... 17 .debug_info 00013b76 00000000 00000000 0000094d 2**0 18 .debug_line 000013c8 00000000 00000000 000144c3 2**0 19 .debug_frame 000001d4 00000000 00000000 0001588c 2**2 20 .debug_loc 00000e3d 00000000 00000000 00015a60 2**0 What is the point of delivering a .ko.debug with no matching .ko ? Am I missing something, should I get more .rpm that I am not aware off ? Thanx for any help or advise. Cheers, Phi -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
Hi All, On Wed, May 1, 2013 at 8:12 AM, phi gcc <phi.gcc@gmail.com> wrote:
Hi All,
I am not really a suse guru so I may miss something regarding the suse build process and the kernel debug infos delivery.
Forget my previous request, I figured the hardway that the .ko.debug located into kernel-<flavor>-debuginfo with missing matching .ko in kernel-<flavor> have their matching .k located into kernel-<flavor>extra Cheers, Phi -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
participants (1)
-
phi gcc