From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754144AbXACEQ7 (ORCPT ); Tue, 2 Jan 2007 23:16:59 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754180AbXACEQ7 (ORCPT ); Tue, 2 Jan 2007 23:16:59 -0500 Received: from e33.co.us.ibm.com ([32.97.110.151]:37307 "EHLO e33.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754144AbXACEQ6 (ORCPT ); Tue, 2 Jan 2007 23:16:58 -0500 Date: Wed, 3 Jan 2007 09:46:45 +0530 From: Vivek Goyal To: linux kernel mailing list Cc: Linus Torvalds , Andi Kleen , Morton Andrew Morton , "Eric W. Biederman" , Fastboot mailing list , Adrian Bunk , Jean Delvare , Segher Boessenkool Subject: [PATCH] i386 kernel instant reboot with older binutils fix Message-ID: <20070103041645.GA17546@in.ibm.com> Reply-To: vgoyal@in.ibm.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.11 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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. Signed-off-by: Segher Boessenkool Signed-off-by: Vivek Goyal --- arch/i386/boot/compressed/head.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN arch/i386/boot/compressed/head.S~jean-reboot-issue-fix arch/i386/boot/compressed/head.S --- linux-2.6.20-rc2-reloc/arch/i386/boot/compressed/head.S~jean-reboot-issue-fix 2007-01-02 09:54:56.000000000 +0530 +++ linux-2.6.20-rc2-reloc-root/arch/i386/boot/compressed/head.S 2007-01-02 09:57:46.000000000 +0530 @@ -28,7 +28,7 @@ #include #include -.section ".text.head" +.section ".text.head","ax",@progbits .globl startup_32 startup_32: _