From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3406 invoked by alias); 1 Apr 2005 14:13:07 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 3344 invoked from network); 1 Apr 2005 14:13:01 -0000 Received: from unknown (HELO SERRANO.CAM.ARTIMI.COM) (217.40.213.68) by sourceware.org with SMTP; 1 Apr 2005 14:13:01 -0000 Received: from 127.0.0.1 (AVG SMTP 7.0.308 [266.9.1]); Fri, 01 Apr 2005 15:12:59 +0100 Received: from mace ([192.168.1.25]) by SERRANO.CAM.ARTIMI.COM with Microsoft SMTPSVC(6.0.3790.211); Fri, 1 Apr 2005 15:12:53 +0100 From: "Dave Korn" To: "'Nick Clifton'" , "'Vincent Rubiolo'" Cc: "'Pieter Arnout'" , , Subject: RE: HELP with linker script!!! Date: Fri, 01 Apr 2005 14:13:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: <424D545F.70203@redhat.com> Message-ID: X-OriginalArrivalTime: 01 Apr 2005 14:12:53.0631 (UTC) FILETIME=[E52C68F0:01C536C4] X-SW-Source: 2005-04/txt/msg00032.txt.bz2 ----Original Message---- >From: Nick Clifton >Sent: 01 April 2005 15:02 > The other way is hackier, but it avoids the warnings: > > int foo __attribute__((section (".cached_bss,\"w\",@nobits#"))); > > This assumes that the hash character (#) is the start-of-line-comment > character for the particular instruction set you are using. If you have > a look at the assembler emitted by GCC you can see why: > > .section .cached_bss,"w",@nobits#,"aw",@progbits > > The hash stops GAS from interpreting the > > ,"aw",@probits > > which gcc has appended to the name of the section... *start*-of-line comment character ......... You could either add a \n before the # or use a ';' or whatever the port uses for the mid-line comment character....... And boy, is that _ever_ a gross hack! (I quite like it!) cheers, DaveK -- Can't think of a witty .sigline today....