From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21779 invoked by alias); 2 Aug 2006 21:29:11 -0000 Received: (qmail 21760 invoked by uid 22791); 2 Aug 2006 21:29:10 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Wed, 02 Aug 2006 21:29:09 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1G8OH5-0008N0-IJ for binutils@sourceware.org; Wed, 02 Aug 2006 17:29:07 -0400 Date: Wed, 02 Aug 2006 21:29:00 -0000 From: Daniel Jacobowitz To: binutils@sourceware.org Subject: Re: Omit output section from executable Message-ID: <20060802212907.GA32160@nevyn.them.org> Mail-Followup-To: binutils@sourceware.org References: <20060802224324.4538786f@laptop.hypervisor.org> <20060802205019.GA30722@nevyn.them.org> <20060802232018.211498e4@laptop.hypervisor.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060802232018.211498e4@laptop.hypervisor.org> User-Agent: Mutt/1.5.11+cvs20060403 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2006-08/txt/msg00022.txt.bz2 On Wed, Aug 02, 2006 at 11:20:18PM +0200, Udo A. Steinberg wrote: > But how can I achieve the same for C sources? When I write: > > unsigned foo __attribute__((section (".cpulocal"))); > > I get > .cpulocal 00000004 00000000 00000000 00000034 2**2 > CONTENTS, ALLOC, LOAD, DATA I don't think you can do this from GCC. -- Daniel Jacobowitz CodeSourcery