Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754423AbXACGqu (ORCPT ); Wed, 3 Jan 2007 01:46:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754431AbXACGqt (ORCPT ); Wed, 3 Jan 2007 01:46:49 -0500 Received: from ebiederm.dsl.xmission.com ([166.70.28.69]:34486 "EHLO ebiederm.dsl.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754375AbXACGqt (ORCPT ); Wed, 3 Jan 2007 01:46:49 -0500 From: ebiederm@xmission.com (Eric W. Biederman) To: vgoyal@in.ibm.com Cc: linux kernel mailing list , Linus Torvalds , Andi Kleen , Morton Andrew Morton , Fastboot mailing list , Adrian Bunk , Jean Delvare , Segher Boessenkool Subject: Re: [PATCH] i386 kernel instant reboot with older binutils fix References: <20070103041645.GA17546@in.ibm.com> Date: Tue, 02 Jan 2007 23:44:34 -0700 In-Reply-To: <20070103041645.GA17546@in.ibm.com> (Vivek Goyal's message of "Wed, 3 Jan 2007 09:46:45 +0530") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1168 Lines: 39 Vivek Goyal writes: > o i386 kernel reboots instantly if compiled with binutils older than > 2.6.15. > > o Older binutils required explicit flags to mark a section allocatable > and executable(AX). Newer binutils automatically mark a section AX if > the name starts with .text. > > o While defining a new section using assembler "section" directive, > explicitly mention section flags. As such this patch looks fine, and is certainly harmless. But don't we also need to address the issue that .text.head is not listed in the linker script? i.e. Don't we also need? .text : AT(ADDR(.text) - LOAD_OFFSET) { _text = .; /* Text and read-only data */ + *(.text.head) *(.text) SCHED_TEXT LOCK_TEXT KPROBES_TEXT *(.fixup) *(.gnu.warning) _etext = .; /* End of text section */ } :text = 0x9090 I'm not even certain how the i386 kernel links properly without the above. Eric - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/