From patchwork Mon Nov 7 04:03:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hugh Dickins X-Patchwork-Id: 691753 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tBzNy6hDgz9vGR for ; Mon, 7 Nov 2016 15:05:06 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b="hR0IdOpb"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3tBzNy5Z3PzDvQq for ; Mon, 7 Nov 2016 15:05:06 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b="hR0IdOpb"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mail-pf0-x236.google.com (mail-pf0-x236.google.com [IPv6:2607:f8b0:400e:c00::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3tBzMS0mJbzDvNV for ; Mon, 7 Nov 2016 15:03:48 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b="hR0IdOpb"; dkim-atps=neutral Received: by mail-pf0-x236.google.com with SMTP id d2so84357595pfd.0 for ; Sun, 06 Nov 2016 20:03:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:message-id:user-agent:mime-version; bh=WsQPs60ze19JLJ4Qo4VpjxvPFP3YUFmwSPPKHtdlR1E=; b=hR0IdOpb1VNCbHrzpgqTfWk2lR0YLWMv15vgWSqpwS1reiWfxM7/fUeAAzoi2HcjJU yZ4b+PqKPEDWej9TVlhLEWfdR4B5XPtjc/3hvkX06MX93L+qASgd0Xbv93F2nr3VOIH3 sFgO4xcckSXy3BC6zd2tDoLwG0XBZuPs79VtTkWEpqSj3OEglFJ3cycOEU3QA20DJRy+ qUSvIeJBmayqHeNbBtbgqo8v14GIXPzOpnwLfBoQdhgs7Kfz3N5CnBFI4NGA7jI8ITOi vG0g/ivZn1SKB5nhVSZOuKoK/esYri17v0jAO0tQSZQxzjQG8zkzxZWc7wKeC+4WDgjy f+rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:user-agent :mime-version; bh=WsQPs60ze19JLJ4Qo4VpjxvPFP3YUFmwSPPKHtdlR1E=; b=AqpVUmzwSH3o/vOmKOPu3dXjLVAud5Hv9KDkFW5L/V2lEY+48k5bbhVtadMy0yhnGY LvEJ1nQhyPL0HQ5X9Vhp7zA9ilohKINdjUsfJ4EXbcx9Ciz0Jh+/OCILoIbXfHg+x3/f Il5xGYTVo31qiq/09hDqJBBj2uVOhYz72+m/YXXML7y8JL7CYOxqj/Xp855DHBS434X0 6p7NhnsP+xwTAF4N7Waj/QciYRmtVKbD/Z+Qon02Ni2JezPQFsO+Lc2pa9YNQgm0V9p5 AkK1bMnEu3DBiDO6aI4md+jqaxddayPKSIDO0PihsSnOCd7DzJFkQ5EEBoEHlCDB+GpX eM4g== X-Gm-Message-State: ABUngvfnj/HL7CoYsSvREMa1Iw7BmZLM8p7v98E0pAgKOomst4Si2NtnL9ufZo5FSHZQQdmQ X-Received: by 10.98.80.140 with SMTP id g12mr9835377pfj.54.1478491426119; Sun, 06 Nov 2016 20:03:46 -0800 (PST) Received: from eggly.attlocal.net (172-10-233-147.lightspeed.sntcca.sbcglobal.net. [172.10.233.147]) by smtp.gmail.com with ESMTPSA id yz6sm35902502pab.35.2016.11.06.20.03.45 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 06 Nov 2016 20:03:45 -0800 (PST) Date: Sun, 6 Nov 2016 20:03:38 -0800 (PST) From: Hugh Dickins X-X-Sender: hugh@eggly.anvils To: Nicholas Piggin Subject: 4.9-rc G5 build broken with a 2.23 binutils Message-ID: User-Agent: Alpine 2.11 (LSU 23 2013-08-11) MIME-Version: 1.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Hi Nick, I've not been able to build 4.9-rc kernels for the PowerMac G5, getting arch/powerpc/kernel/exceptions-64s.S: Assembler messages: arch/powerpc/kernel/exceptions-64s.S:770: Error: operand out of range (0xffffffffffff8100 is not between 0x0000000000000000 and 0x000000000000ffff) and 20 more similar before arch/powerpc/kernel/exceptions-64s.S:1024: Error: operand out of range (0xffffffffffff9180 is not between 0x0000000000000000 and 0x000000000000ffff) make[1]: *** [arch/powerpc/kernel/head_64.o] Error 1 That's with the binutils-2.23.2-8.1.4.ppc64 from openSUSE 13.1. But yesterday your comment on @l in a24553dd02dc ("powerpc/pseries: Remove unnecessary syscall trampoline") helped me to the patch below (removing @l from LOAD_HANDLER, but leaving @l in __LOAD_HANDLER), which gets the build working again (and produces a good kernel). For me. But to judge by your comment, this would break the build for someone else? I don't mind keeping this as a local patch if I'm the only one affected, so haven't signed off on it; but thought I'd better inform you. Hugh --- arch/powerpc/include/asm/exception-64s.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 4.9-rc4/arch/powerpc/include/asm/exception-64s.h 2016-10-29 15:02:42.921203905 -0700 +++ linux/arch/powerpc/include/asm/exception-64s.h 2016-11-05 16:26:34.250133166 -0700 @@ -91,7 +91,7 @@ */ #define LOAD_HANDLER(reg, label) \ ld reg,PACAKBASE(r13); /* get high part of &label */ \ - ori reg,reg,(FIXED_SYMBOL_ABS_ADDR(label))@l; + ori reg,reg,FIXED_SYMBOL_ABS_ADDR(label); #define __LOAD_HANDLER(reg, label) \ ld reg,PACAKBASE(r13); \