From nobody Sat May 9 09:22:11 2026 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B616A1D88AD for ; Fri, 24 Jan 2025 08:31:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.255 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737707489; cv=none; b=BS7nPFjGhUZOgPYdVWVfwBFkq74O2Bw4Dn5GhH7SIKn53zpxHuK4XSiPCwD7xLl0uMvlsQyN07OAxkhDaHiZyJfw0NMOXDg2LT7EcEjDEVDZrc7MkK+yy6A7wFbCBKlSvBCEOaFILTW4SWjceIhAFPO6EyrelNSek6xZeGCxRdw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737707489; c=relaxed/simple; bh=OnKFgXxptbsuBvsjjUy2b0pt9Z0VKNTjO1tYcwBM24M=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=teZ7oSRIdblLY/CymWAuxWwm69+wRQQZSmOnpx0q8spMqSlBNigM1ok6bDZXVR80jiPe2wbRjKF0U7S2/9aX3QaUEslAZyGX7WFttmfU/KVamGOYF/MQvs0zbNqjYCQ71FrQp1zbtYlyjL/wIG/y1ugWs2MSVxg3xalDN+UUitE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.255 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.105]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4YfWBp2PXyz1W4jh; Fri, 24 Jan 2025 16:27:14 +0800 (CST) Received: from kwepemg500010.china.huawei.com (unknown [7.202.181.71]) by mail.maildlp.com (Postfix) with ESMTPS id A6AA6140159; Fri, 24 Jan 2025 16:31:16 +0800 (CST) Received: from huawei.com (10.67.174.76) by kwepemg500010.china.huawei.com (7.202.181.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Fri, 24 Jan 2025 16:31:16 +0800 From: Yuntao Liu To: , CC: , , , , , Subject: [PATCH -next] arm32/boot/compressed: Force hidden visibility for all symbol references Date: Fri, 24 Jan 2025 08:20:30 +0000 Message-ID: <20250124082030.764417-1-liuyuntao12@huawei.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemg500010.china.huawei.com (7.202.181.71) Content-Type: text/plain; charset="utf-8" Eliminate all GOT entries in the decompressor binary, by forcing hidden visibility for all symbol references, which informs the compiler that such references will be resolved at link time without the need for allocating GOT entries. Include linux/hidden.h in Makefile, like x86, for the hidden visibility attribute. Signed-off-by: Yuntao Liu --- arch/arm/boot/compressed/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/M= akefile index 945b5975fce2..d8a17760ad29 100644 --- a/arch/arm/boot/compressed/Makefile +++ b/arch/arm/boot/compressed/Makefile @@ -93,6 +93,9 @@ targets :=3D vmlinux vmlinux.lds piggy_data piggy.o= \ head.o $(OBJS) =20 KBUILD_CFLAGS +=3D -DDISABLE_BRANCH_PROFILING +ifneq ($(CONFIG_LD_IS_LLD),y) +KBUILD_CFLAGS +=3D -include $(srctree)/include/linux/hidden.h +endif =20 ccflags-y :=3D -fpic $(call cc-option,-mno-single-pic-base,) -fno-builtin \ -I$(srctree)/scripts/dtc/libfdt -fno-stack-protector \ --=20 2.34.1