Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2318978pxb; Mon, 20 Sep 2021 18:41:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAZZGHV78Rv2aV7et11JHlA1MlKvDYoQ8wg+umHVZioN4fJlvkYN5ifjoWaBzzRgLLHX1n X-Received: by 2002:a02:9204:: with SMTP id x4mr21551454jag.45.1632188498687; Mon, 20 Sep 2021 18:41:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632188498; cv=none; d=google.com; s=arc-20160816; b=eK80PigmUOkTS/4XPLiw0Auqdw2ADAG3Vm7HzMkRMtyyvV/lVV3RP21SllG/xppIUH wFUGAg6AITIZY946ths/Z4EI1HtU4Kj4Qyns+ye7TerIlnydADYFFnW2FdWGNbpvbekw LSlSJpO9818m+Q2tOUFEI3v/ETrgt5D65p+4JK30RSotvX5Y9qdIgoPU6VM34AU5jogx S9/8qN5Gl3ZthazioX92b9ScbRXPPKZkiXWO8M0ZLH4wHV3GEkUCTNL/gigZbCR9OEJv fU2zC+55nc0tH9ApL0LAvy7a6I6G6BS1YEfDXGZvQNO9V0IsQWCC349KObAYRdqqDJgw xYwg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=S6mjdr5aYii6tbej83mskRuC8tY8OhBZVJ6W0ODpSpw=; b=HpQzl/+MoMdxr7focyFrPs6epgYrSWNHDkc2692tmhloYm+9yi2vwHz7xpoIbt/Fup zBYyY0ekDv7HQ/yHcMfkgc9tjnh7O9nrpTKiifobkX0R7W47iZd0hhGeWGb22dCvwvrB jekEmt8pCZUefajiPZTgdqoCo/jCRCTXZy2cV0UZqpokNaPrnbQqZPV5wz3F9TZYUZIl GLAGvj5F8fbP3pU5Ma4vmMf4O+Aw2eHpHqjBysbDlKjOH7+hm1bwbDw+HLBbfIqmzsnG yiA07VaNFPRcucCVNVAb7H7kI6sWj1NXXcAGmOgHMX6EqcnVS7Kod5j2E3/IHtfmvaVr LqLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yMkyJKaK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x17si14627675ilc.170.2021.09.20.18.41.27; Mon, 20 Sep 2021 18:41:38 -0700 (PDT) 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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yMkyJKaK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243808AbhITQtm (ORCPT + 99 others); Mon, 20 Sep 2021 12:49:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:35830 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243300AbhITQs0 (ORCPT ); Mon, 20 Sep 2021 12:48:26 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1BF17611AE; Mon, 20 Sep 2021 16:46:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632156419; bh=B5Yzeoee29PRAotFD0SAuZNvKzUzhZ9AqeuINJp0T8E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yMkyJKaKknVfUnRdTplJNMbzA2AiW1kMuTmleMEXFwPsxTh1v0PI026VZFQTYhz4h 6/tiDanEd5kayZqhBcqsnTfqjPn/KnUIyZv7NAiG7LVljKcuWEx0HIpx9m0wRGjjcN OHccRi+kkWelTR+2U9i9DYqdk4LNUMjbRliR0iw0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Fangrui Song , Michael Ellerman Subject: [PATCH 4.4 023/133] powerpc/boot: Delete unneeded .globl _zimage_start Date: Mon, 20 Sep 2021 18:41:41 +0200 Message-Id: <20210920163913.371597245@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163912.603434365@linuxfoundation.org> References: <20210920163912.603434365@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Fangrui Song commit 968339fad422a58312f67718691b717dac45c399 upstream. .globl sets the symbol binding to STB_GLOBAL while .weak sets the binding to STB_WEAK. GNU as let .weak override .globl since binutils-gdb 5ca547dc2399a0a5d9f20626d4bf5547c3ccfddd (1996). Clang integrated assembler let the last win but it may error in the future. Since it is a convention that only one binding directive is used, just delete .globl. Fixes: ee9d21b3b358 ("powerpc/boot: Ensure _zimage_start is a weak symbol") Signed-off-by: Fangrui Song Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20200325164257.170229-1-maskray@google.com Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/boot/crt0.S | 3 --- 1 file changed, 3 deletions(-) --- a/arch/powerpc/boot/crt0.S +++ b/arch/powerpc/boot/crt0.S @@ -49,9 +49,6 @@ p_end: .long _end p_pstack: .long _platform_stack_top #endif - .globl _zimage_start - /* Clang appears to require the .weak directive to be after the symbol - * is defined. See https://bugs.llvm.org/show_bug.cgi?id=38921 */ .weak _zimage_start _zimage_start: .globl _zimage_start_lib