Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754888Ab0FNOcx (ORCPT ); Mon, 14 Jun 2010 10:32:53 -0400 Received: from mail-yx0-f174.google.com ([209.85.213.174]:39817 "EHLO mail-yx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754663Ab0FNOcv (ORCPT ); Mon, 14 Jun 2010 10:32:51 -0400 Date: Mon, 14 Jun 2010 10:32:46 -0400 (EDT) From: Tim Abbott X-X-Sender: tabbott@dr-wily.mit.edu To: Matt Fleming cc: linux-arch@vger.kernel.org, Arnd Bergmann , linux-kernel@vger.kernel.org, Sam Ravnborg , Michal Marek , Denys Vlasenko Subject: Re: [PATCH 1/5] vmlinux.lds.h: Include *(.text.*) in TEXT_TEXT In-Reply-To: <1276519112-11649-1-git-send-email-matt@console-pimps.org> Message-ID: References: <1276519112-11649-1-git-send-email-matt@console-pimps.org> User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1424 Lines: 33 On Mon, 14 Jun 2010, Matt Fleming wrote: > Many architectures collect text sections beginning with '.text.' in > their .text section, so move this pattern into TEXT_TEXT to stop them > all having to duplicate the pattern in their arch/ linker scripts. Hi Matt, I think this change could result in problems such as the page-aligned text sections (recently renamed from .text.page_aligned to .text..page_aligned) that exist in some architectures being included the main text section in a non-page-aligned fashion (and similar issues for other .text.foo sections). I was planning to submit in the next couple weeks a change that adds support for building the kernel with -ffunction-sections -fdata-sections, which would have as a piece of it adding to TEXT_TEXT the following expression: *(.text.[A-Za-z$_]*) /* handle -ffunction-sections */\ which should match the .text.foo sections generated by -ffunction-sections but not the kernel's special sections which now all have names of the form .text..foo. I suspect after that change, the cleanup of deleting .text.* from the various architecture linker scripts that reference it should be possible. -Tim Abbott -- 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/