Re: kernel-image-2.6.7
On Thu, 12 Aug 2004, Finn Thain wrote:
> Until someone can determine why binutils 2.14 and 2.15 are including a
> third, empty, non-code segment in the m68k kernel image, you can use this
> workaround to remove that segment to make the kernel image agreeable to
> bootloaders, but you will need an uncompressed kernel image. See,
I just noticed `objdump -x' shows this extra section, while `objdump -h'
doesn't. That's why I never noticed this extra section before.
Here's (the first part of) a diff between a known-good and a known-bad kernel
(they're actually uClinux, not Linux/m68k, but that doesn't matter).
Perhaps we can kill this section in the link file?
--- vmlinux-binutils-2.13.90.0.10.x 2004-08-12 11:32:33.000000000 +0200
+++ vmlinux-binutils-2.14.90.0.7.x 2004-08-12 11:32:27.000000000 +0200
@@ -1,6 +1,6 @@
-vmlinux-binutils-2.13.90.0.10: file format elf32-m68k
-vmlinux-binutils-2.13.90.0.10
+vmlinux-binutils-2.14.90.0.7: file format elf32-m68k
+vmlinux-binutils-2.14.90.0.7
architecture: m68k, flags 0x00000112:
EXEC_P, HAS_SYMS, D_PAGED
start address 0x00202000
@@ -10,6 +10,8 @@
filesz 0x0008d3f8 memsz 0x00099ed4 flags rwx
LOAD off 0x0008dee0 vaddr 0x00299ee0 paddr 0x00299ee0 align 2**13
filesz 0x0000e120 memsz 0x0000e120 flags rwx
+ STACK off 0x00000000 vaddr 0x00000000 paddr 0x00000000 align 2**2
+ filesz 0x00000000 memsz 0x00000000 flags rwx
private flags = 1000000: [m68000]
Sections:
@@ -18,15 +20,15 @@
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 __ex_table 00000f08 00279490 00279490 00079490 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
- 2 .rodata 00009270 0027a398 0027a398 0007a398 2**1
+ 2 .rodata 0000926e 0027a398 0027a398 0007a398 2**1
CONTENTS, ALLOC, LOAD, READONLY, DATA
- 3 __ksymtab 00000000 00283608 00283608 0009c000 2**0
+ 3 __ksymtab 00000000 00283606 00283606 0009c000 2**0
CONTENTS
- 4 __ksymtab_gpl 00000000 00283608 00283608 0009c000 2**0
+ 4 __ksymtab_gpl 00000000 00283606 00283606 0009c000 2**0
CONTENTS
- 5 __kcrctab 00000000 00283608 00283608 0009c000 2**0
+ 5 __kcrctab 00000000 00283606 00283606 0009c000 2**0
CONTENTS
- 6 __kcrctab_gpl 00000000 00283608 00283608 0009c000 2**0
+ 6 __kcrctab_gpl 00000000 00283606 00283606 0009c000 2**0
CONTENTS
7 .data 00009df0 00283608 00283608 00083608 2**2
CONTENTS, ALLOC, LOAD, DATA
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Reply to: