On Fri, Dec 22, 2006 at 09:08:06AM +0100, Jean Delvare wrote:
> Hi Vivek,
>
> On Fri, 22 Dec 2006 02:14:08 +0530, Vivek Goyal wrote:
> > Jean, can you please upload some more files. Should give some more idea
> > about what happened in your environment.
> >
> > arch/i386/boot/vmlinux.bin
> > arch/i386/boot/compressed/piggy.o
> > arch/i386/boot/compressed/head.o
>
> Sure, here they are:
> http://jdelvare.pck.nerim.net/linux/relocatable-bug/
>
Thanks Jean. Your compressed/head.o looks fine.
Disassembly of section .text.head:
00000000 <startup_32>:
0: fc cld
1: fa cli
2: b8 18 00 00 00 mov $0x18,%eax
compressed/piggy.o also looks fine. In this relocatable object,
compressed kernel size is present at office 0x34.
000000 464c457f 00010101 00000000 00000000
000010 00030001 00000001 00000000 00000000
000020 0013358c 00000000 00000034 00280000
000030 00020005 00133526 00088b1f 458a914d
^^^^^^^
But vmlinux.bin is not good. It should have contained startup_32() code
bytes from compressed/head.S but it seems to basically cotain piggy.o data
at the beginning. Instead it should have had .text.head section in the
beginning.
000000 00133526 00088b1f 458a914d fdb40302
^^^^^^^ (compressed kernel size. Same as piggy.o)
boot/vmlinux.bin is made after stripping boot/compressed/vmlinux. And
boot/compressed/vmlinux is made with the linking of head.o, misc.o and
piggy.o. So either objcopy did something wrong or linker itself did not
generate a proper compressed/vmlinux.
Can you please also upload boot/compressed/vmlinux.
Another odd thing is that "file vmlinux.bin" shows following.
vmlinux.bin: Sendmail frozen configuration - version \015\024\322\216\356\222X\2306\032H\220\303\270\006\007\003
I am not sure what does it mean. I had expected it to be a data blob.
"vmlinux.bin: data"
Can you please also compile the kernel in verbose mode "make V=1" and
upload the output. just wanted to make sure Makefiles are being
interpreted properly.
Thanks
Vivek
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]