Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755650AbZD0RaU (ORCPT ); Mon, 27 Apr 2009 13:30:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752211AbZD0RaF (ORCPT ); Mon, 27 Apr 2009 13:30:05 -0400 Received: from mga02.intel.com ([134.134.136.20]:63353 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752090AbZD0RaE convert rfc822-to-8bit (ORCPT ); Mon, 27 Apr 2009 13:30:04 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.40,255,1239001200"; d="scan'208";a="407305220" From: "Luck, Tony" To: Linus Torvalds , Tim Abbott CC: Sam Ravnborg , Linux kernel mailing list , Anders Kaseorg , Waseem Daher , Denys Vlasenko , Rusty Russell , Andi Kleen , "H. Peter Anvin" , Stephen Rothwell , Jeff Arnold , Andrew Morton , Jon Masters , Masami Hiramatsu , "Theodore Ts'o" , Nikanth Karthikesan , Arjan van de Ven , Paul Mundt , =?iso-8859-1?Q?Am=E9rico_Wang?= , Ralf Baechle , Kyle McMartin , David Howells , Russell King Date: Mon, 27 Apr 2009 10:29:49 -0700 Subject: RE: [PATCH 05/15] arm: convert to use __HEAD and HEAD_TEXT macros. Thread-Topic: [PATCH 05/15] arm: convert to use __HEAD and HEAD_TEXT macros. Thread-Index: AcnHXPHRpgEBDetGSXmdF8323HegcQAABtNg Message-ID: <57C9024A16AD2D4C97DC78E552063EA39EDA91F9@orsmsx505.amr.corp.intel.com> References: <1240711870-30505-1-git-send-email-tabbott@mit.edu> <1240711870-30505-2-git-send-email-tabbott@mit.edu> <1240711870-30505-3-git-send-email-tabbott@mit.edu> <1240711870-30505-4-git-send-email-tabbott@mit.edu> <1240711870-30505-5-git-send-email-tabbott@mit.edu> <20090426111924.GD28642@uranus.ravnborg.org> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1117 Lines: 26 >> Does .head.text actually need its own output section here? > > Probably not. Does the ARM build system massage the end result some way > looking for that .text.head section in the end? As you note, nobody else > cares, and the proper patch may be more along the lines of something > below. ia64 doesn't seem to care ... I changed the one use of .text.head to be just .text. There are a couple of new "section mismatches" (start_ap -> start_secondary and start_ap -> start_kernel), but it still boots. > Of course, most other architectures put the "init" section at the end, and > leave the HEAD_TEXT in the regular text section, but I suspect the ARM way > of laying things out (init text first) is probably better, since it allows > you to free that head code too. The start_ap code is still needed for hotplug cpu on ia64. So .text.init won't work for me. -Tony -- 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/