mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bastian Blank <waldi@debian.org>
To: Linus Torvalds <torvalds@linux-foundation.org>,
	linux-kernel@vger.kernel.org
Cc: Kiko Piris <kernel@pirispons.net>,
	Damien Wyart <damien.wyart@free.fr>, Greg KH <gregkh@suse.de>,
	Wolfgang Walter <wolfgang.walter@stwm.de>,
	hpa@zytor.com, 537862@bugs.debian.org
Subject: Re: Linux 2.6.30.2: does not boot
Date: Tue, 21 Jul 2009 22:42:14 +0200	[thread overview]
Message-ID: <20090721204214.GA27015@wavehammer.waldi.eu.org> (raw)
In-Reply-To: <alpine.LFD.2.01.0907201458000.19335@localhost.localdomain>

On Mon, Jul 20, 2009 at 03:02:36PM -0700, Linus Torvalds wrote:
> On Mon, 20 Jul 2009, Kiko Piris wrote:
> > Yes, as Marcel Beister pointed, it resulted some binutils bug.
> > Downgrading the package produced a perfectly bootable 2.6.30.2.
> Ok, so it's been narrowed down to binutils. Good.

Okay, I did some work and now got one working and one not working
kernel. The setup code it, except the payload size and the version
string, identical. Now to vmlinux.

First difference (1-vmlinux is the broken, 2-vmlinux is the working
version):
| 2-vmlinux:     file format elf32-i386
| 2-vmlinux
| architecture: i386, flags 0x00000113:
| HAS_RELOC, EXEC_P, HAS_SYMS, D_PAGED
vs.
| 1-vmlinux:     file format elf32-i386
| 1-vmlinux
| architecture: i386, flags 0x00000013:
| HAS_RELOC, EXEC_P, HAS_SYMS
The file lost its D_PAGED flag.

Next:
|  16 .init.rodata  00000394  c05057e0  005057e0  004067e0  2**4
|                   CONTENTS, ALLOC, LOAD, RELOC, DATA
|  17 .data.page_aligned 00000800  c0506000  00506000  00407000  2**5
|                   CONTENTS, ALLOC, LOAD, DATA
vs.
|  16 .init.rodata  00000394  c0506000  00506000  00407000  2**4
|                   CONTENTS, ALLOC, LOAD, RELOC, DATA
|  17 .data_nosave  00000c6c  c0506394  00506394  00407394  2**0
|                   ALLOC
|  18 .data.page_aligned 00000800  c0507000  00506394  00407394  2**5
|                   CONTENTS, ALLOC, LOAD, DATA
So suddenly there apears a .data_nosave with some content, but it is
marked the same then a bss section and not even properly aligned
according to the linker script.

The same sections of another working kernel, built with the new
binutils:
|  18 .init.rodata  000003bd  c040f4c0  0040f4c0  003104c0  2**2
|                   CONTENTS, ALLOC, LOAD, RELOC, DATA
|  19 .data_nosave  00001000  c0410000  00410000  00311000  2**2
|                   CONTENTS, ALLOC, LOAD, DATA
|  20 .data.page_aligned 00000800  c0411000  00411000  00312000  2**2
|                   CONTENTS, ALLOC, LOAD, DATA
The .data_nosave section is a real one here.

I would say, such holes won't survive the objcopy to create a binary and
all code is at the wrong location.

Bastian

-- 
Punishment becomes ineffective after a certain point.  Men become insensitive.
		-- Eneg, "Patterns of Force", stardate 2534.7

  parent reply	other threads:[~2009-07-21 20:48 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-20  4:08 Linux 2.6.30.2 Greg KH
2009-07-20  4:08 ` Greg KH
2009-07-20 14:13 ` Linux 2.6.30.2: does not boot Wolfgang Walter
2009-07-20 14:38   ` Kiko Piris
2009-07-20 15:09   ` Greg KH
2009-07-20 18:03     ` Damien Wyart
2009-07-20 18:16       ` Linus Torvalds
2009-07-20 18:21         ` Sam Ravnborg
2009-07-20 20:31         ` Damien Wyart
2009-07-21  0:13         ` Stephen Rothwell
2009-07-21  0:28           ` Linus Torvalds
2009-07-21  4:09             ` Stephen Rothwell
2009-07-20 19:23       ` Alejandro Riveira Fernández
2009-07-20 19:42         ` Greg KH
2009-07-20 19:50           ` Alejandro Riveira Fernández
2009-07-20 21:34             ` Greg KH
2009-07-20 19:29       ` Kiko Piris
2009-07-20 19:50         ` Linus Torvalds
2009-07-20 21:19           ` Kiko Piris
2009-07-20 22:02             ` Linus Torvalds
2009-07-20 22:04               ` Linus Torvalds
2009-07-20 22:14               ` Kiko Piris
2009-07-21  0:42               ` Wolfgang Walter
2009-07-21 20:42               ` Bastian Blank [this message]
2009-07-23  0:49                 ` current binutils trunk fails to build bootable kernel image for some configurations Alan Modra
2009-07-23  5:05                   ` Sam Ravnborg
2009-07-23  6:01                     ` Alan Modra
2009-07-20 20:29   ` Linux 2.6.30.2: does not boot Marcel Beister
2009-07-20 15:21 Mario Vanoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090721204214.GA27015@wavehammer.waldi.eu.org \
    --to=waldi@debian.org \
    --cc=537862@bugs.debian.org \
    --cc=damien.wyart@free.fr \
    --cc=gregkh@suse.de \
    --cc=hpa@zytor.com \
    --cc=kernel@pirispons.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    --cc=wolfgang.walter@stwm.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®