From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21016 invoked by alias); 6 Jun 2014 11:31:54 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 21005 invoked by uid 89); 6 Jun 2014 11:31:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=4.0 required=5.0 tests=AWL,BAYES_50,FOREIGN_BODY,RDNS_DYNAMIC,T_FILL_THIS_FORM_SHORT autolearn=no version=3.3.2 X-HELO: mail.embedded-brains.de Received: from host-82-135-62-35.customer.m-online.net (HELO mail.embedded-brains.de) (82.135.62.35) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 06 Jun 2014 11:31:53 +0000 Received: by mail.embedded-brains.de (Postfix, from userid 65534) id 7F117652CFC; Fri, 6 Jun 2014 13:31:50 +0200 (CEST) Received: from [192.168.100.11] (unknown [192.168.100.11]) by mail.embedded-brains.de (Postfix) with ESMTP id DB05F652CF6 for ; Fri, 6 Jun 2014 13:31:48 +0200 (CEST) Message-ID: <5391A6A4.6050708@embedded-brains.de> Date: Fri, 06 Jun 2014 11:31:00 -0000 From: Sebastian Huber User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: binutils@sourceware.org Subject: Re: 32-bit PowerPC sdata linker problem References: <53918356.3040102@embedded-brains.de> <20140606105420.GH5592@bubble.grove.modra.org> <5391A4BF.2030308@embedded-brains.de> In-Reply-To: <5391A4BF.2030308@embedded-brains.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2014-06/txt/msg00061.txt.bz2 On 2014-06-06 13:23, Sebastian Huber wrote: > Ok, so this "cmplwi cr0, rX, ppc_exc_lock_std@sdarel" is illegal, since > ppc_exc_lock_std@sdarel is signed and the immediate is unsigned 16-bit? The > assembler doesn't issue a warning about this. > > Exists there a way to rescue this cmplwi hack without relaxing the overflow > checks? Hm, sorry, it was surprisingly simple. This works: "cmplwi cr0, rX, ppc_exc_lock_std@sdarel@l" I was not aware that you can add several @ in a row. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.huber@embedded-brains.de PGP : Public key available on request. Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.