From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26337 invoked by alias); 1 Apr 2005 14:34:48 -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 26163 invoked from network); 1 Apr 2005 14:34:42 -0000 Received: from unknown (HELO mx2.suse.de) (195.135.220.15) by sourceware.org with SMTP; 1 Apr 2005 14:34:42 -0000 Received: from hermes.suse.de (hermes-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id B9E6AFD4; Fri, 1 Apr 2005 16:34:41 +0200 (CEST) To: "Dave Korn" Cc: "'Nick Clifton'" , "'Vincent Rubiolo'" , "'Pieter Arnout'" , , Subject: Re: HELP with linker script!!! References: From: Andreas Schwab X-Yow: Concentrate on th'cute, li'l CARTOON GUYS! Remember the SERIAL NUMBERS!! Follow the WHIPPLE AVE EXIT!! Have a FREE PEPSI!! Turn LEFT at th'HOLIDAY INN!! JOIN the CREDIT WORLD!! MAKE me an OFFER!!! Date: Fri, 01 Apr 2005 14:34:00 -0000 In-Reply-To: (Dave Korn's message of "Fri, 1 Apr 2005 15:13:03 +0100") Message-ID: User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2005-04/txt/msg00037.txt.bz2 "Dave Korn" writes: > ----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!) This will fail within #NO_APP. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."