Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1337082pxb; Wed, 10 Feb 2021 06:17:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJwl1tdnSUngiBvIHS/wR/tDYhaajyJuW/ArEUO/Cnodn/PC6bbXocFIUSmlOlByBrZDqH5R X-Received: by 2002:a17:906:1f85:: with SMTP id t5mr3220735ejr.530.1612966627099; Wed, 10 Feb 2021 06:17:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612966627; cv=none; d=google.com; s=arc-20160816; b=T6b7SvQaBiE++FBLzepvB5cGqLGE62vs0lCLVATee8fZz3hZshIzWWZqpHZxk9mrrC VcaAuzyhIeklqPEIA2dBQvKRx6KCLl4Y1VtW6pfyPdqUGt7MCulCfJjCcw09ohkhNxuw iuhHY2dYFHyxFvWooFT6bUzYm76isk5CjEPMHyiCPCynu3FIb3am/SZ6nqyhV1+8b7RZ SR+oSB6cge6G8SYQqwCYjgtuz/KTwebuQKsitWMpUr3s7Z0nfDwPf4xSKIFi3UmA83zM hW/ege7ene6wc7Z2jyrmQ4InL/cAzYZBmfqjeKrAni4ewYLV9waAiQdTyN31xrXlq8oj QC9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=xQytiITFzX/BhPXqyqwqs6SArY+XukCXHyzo29CYrEc=; b=RWKU2VC48rm9ldm9Oaa2AeCMA61YYNv+vhcHd1JGUaKBpXl6hR5R4c1mR4UV9aguKq NrsmgksiFw5cqBq+v17JdwWlI63SS7BfHi1JSW/6u0br2lRnEIt0gn4TwgM9Pzbr/K2s ZTWXd1DP9xlEF5g7VVg9QQ0EtNLRjFz8a2P4ZMpKxQ/+L2A9p8EmMCmsULrxbqZuxYM4 Cf4QSXQPtRFXXZ3U2TlUdaZKvo5uxW6mPf3AgErAEbK+eBYIasdnxdPRlUB7PA5/FTIJ pgxzeA8iWtVWnPB28WcdSqgOD9CqOh9UWB2NTCJRc+Y2Dm1NS7t0AHpKurVkqEgCjlBk u9sA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p20si1403293ejf.307.2021.02.10.06.16.42; Wed, 10 Feb 2021 06:17:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232027AbhBJOQD (ORCPT + 99 others); Wed, 10 Feb 2021 09:16:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231478AbhBJONP (ORCPT ); Wed, 10 Feb 2021 09:13:15 -0500 Received: from andre.telenet-ops.be (andre.telenet-ops.be [IPv6:2a02:1800:120:4::f00:15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7847EC06178A for ; Wed, 10 Feb 2021 06:11:46 -0800 (PST) Received: from ramsan.of.borg ([84.195.186.194]) by andre.telenet-ops.be with bizsmtp id TSBj2400s4C55Sk01SBjmn; Wed, 10 Feb 2021 15:11:44 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1l9qDX-005Ht0-8l; Wed, 10 Feb 2021 15:11:43 +0100 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1l9qDW-006Jqr-Sp; Wed, 10 Feb 2021 15:11:42 +0100 From: Geert Uytterhoeven To: Russell King , Michal Simek , Arnd Bergmann Cc: linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 4/4] microblaze: Remove support for gcc < 4 Date: Wed, 10 Feb 2021 15:11:40 +0100 Message-Id: <20210210141140.1506212-5-geert+renesas@glider.be> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210210141140.1506212-1-geert+renesas@glider.be> References: <20210210141140.1506212-1-geert+renesas@glider.be> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit cafa0010cd51fb71 ("Raise the minimum required gcc version to 4.6") , the kernel can no longer be compiled using gcc-3. Hence drop support code for gcc-3. Signed-off-by: Geert Uytterhoeven --- arch/microblaze/kernel/module.c | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/arch/microblaze/kernel/module.c b/arch/microblaze/kernel/module.c index 9f12e3c2bb42a319..e5db3a57b9e30d9e 100644 --- a/arch/microblaze/kernel/module.c +++ b/arch/microblaze/kernel/module.c @@ -24,9 +24,6 @@ int apply_relocate_add(Elf32_Shdr *sechdrs, const char *strtab, Elf32_Sym *sym; unsigned long int *location; unsigned long int value; -#if __GNUC__ < 4 - unsigned long int old_value; -#endif pr_debug("Applying add relocation section %u to %u\n", relsec, sechdrs[relsec].sh_info); @@ -49,40 +46,17 @@ int apply_relocate_add(Elf32_Shdr *sechdrs, const char *strtab, */ case R_MICROBLAZE_32: -#if __GNUC__ < 4 - old_value = *location; - *location = value + old_value; - - pr_debug("R_MICROBLAZE_32 (%08lx->%08lx)\n", - old_value, value); -#else *location = value; -#endif break; case R_MICROBLAZE_64: -#if __GNUC__ < 4 - /* Split relocs only required/used pre gcc4.1.1 */ - old_value = ((location[0] & 0x0000FFFF) << 16) | - (location[1] & 0x0000FFFF); - value += old_value; -#endif location[0] = (location[0] & 0xFFFF0000) | (value >> 16); location[1] = (location[1] & 0xFFFF0000) | (value & 0xFFFF); -#if __GNUC__ < 4 - pr_debug("R_MICROBLAZE_64 (%08lx->%08lx)\n", - old_value, value); -#endif break; case R_MICROBLAZE_64_PCREL: -#if __GNUC__ < 4 - old_value = (location[0] & 0xFFFF) << 16 | - (location[1] & 0xFFFF); - value -= old_value; -#endif value -= (unsigned long int)(location) + 4; location[0] = (location[0] & 0xFFFF0000) | (value >> 16); -- 2.25.1