Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp584617rdf; Fri, 3 Nov 2023 09:02:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGt1ojSN45yS97BUbpRkQas8NiWott/QkTa5sPdIGk23kfnY6XIwlqBzaTd9LUQTMvCHv+C X-Received: by 2002:a17:903:2284:b0:1cc:436f:70c2 with SMTP id b4-20020a170903228400b001cc436f70c2mr4860529plh.9.1699027375936; Fri, 03 Nov 2023 09:02:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699027375; cv=none; d=google.com; s=arc-20160816; b=TKiibhTDcq3HWl85fSNgIJTnt32VF7OwrBhwzistSUDNLXsibjaR4N9nvxz+Xv2xCP lW2J0eh9qu6h7LOvozHLN6SZ1B8p+kmeSTg67Mz1dWjQR46aoMfIXyYgn1dL43o4XPRe RYHYcmovkCMm2ricldtC89wcJJeaGJEfhks4vn3m7PXMlrDcodNuO7rPd7RA7F9yxKLF oofnPs2Sbe6mL4NjWIIBWf7LMhJFXoGbN4YQjesMTgpJuR/zNTXU8PklmW0vbJ8FSGX3 JYhWZU5WbI9tF0uQlAaDXjWDlg/ihInRWo7q+ZJHdnf5uuMagz0wWWSQHkuxF+d1Vdv/ IeEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=IGWZZDOEs1Sdxq1a2878wAXkTBuQKsf9nxloyDmOnx0=; fh=NvW3CO3GtIHRKW4YFObS4dEX0yL9bbz2APezTtyZGhQ=; b=dD8ZodYZpbUJZB/5EnxGqYHaQCxoOTXYXlm3NfUhbMeSy/xep40f1+bdYwSQ32o0PR Z9jvhOO7B8nVspODydQ6VsP9WwxtsBVCSFYm4P1n/3pFMUzwrLPM4p8oG3KhWWAyzaW0 jVFMcFZsGW2nUcJJ0DTQ5OlUCigJvp5zAXdCihJqrjtjaBzfmouVnwCCwNE/z+DjyQVS jSXQ1sQPSXiZWMbXvySdQ65tIkPZj5GAcBW64QaFMzvmEy4kj6Da9Mnq9ywENRadse8R 5YvDRhO0qGR+5tDBYIYP1Si8651w8tuNdNPjTlBiCXL3CYdpMgqEgsyQX6ibNMp01cF4 x3kQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id ju2-20020a170903428200b001cc3388573bsi1648048plb.312.2023.11.03.09.02.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 09:02:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id A4FAE8220D45; Fri, 3 Nov 2023 09:02:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345245AbjKCQCo (ORCPT + 99 others); Fri, 3 Nov 2023 12:02:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345199AbjKCQCm (ORCPT ); Fri, 3 Nov 2023 12:02:42 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD69D1BF; Fri, 3 Nov 2023 09:02:38 -0700 (PDT) X-QQ-mid: bizesmtp91t1699027345tuzi88hk Received: from main2-ubuntu.tail147f4.ts.net ( [202.201.15.117]) by bizesmtp.qq.com (ESMTP) with id ; Sat, 04 Nov 2023 00:02:22 +0800 (CST) X-QQ-SSF: 01200000000000B06000000A0000000 X-QQ-FEAT: YlW+rreuxxXoxvlIlb1sqNHnSOT+l5Yn7jheMGM0MN7wg16F1FQezu3ESPCIn SG4dX7pl9FbKYtPlw5xFGKF9hdEiY4GXCO8Dcbx8/cg7Og+QCU3+CXMPCfzr3ILF+7b8OJC We3CArNs3/RzbQomd2+K7yNXkmGAdxxgFstmrUQolP47JcSLPCcnWVH+pzG+WBKc95SRuk6 GRNeVQS005EaooagskyJFuMF58jFp792MV4/nMVDor5tdI0R+v9ntYb8OLdlo+bjQBPaFjZ 3tXMXILkQNqiZOfSFuWlhMCs5t5EvoYMyXZptegM68V3A/gfjehT5qri7Me9UwyV2uMy7Yw qI4nF3fFj9RVpkTbEo40dXUlw5DXyqiA0exePUzOcNNH73+MM0= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 1289692222090341736 From: Yuan Tan To: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-riscv@lists.infradead.org, luc.vanoostenryck@gmail.com, linux-sparse@vger.kernel.org Cc: linux@weissschuh.net, palmer@rivosinc.com, paul.walmsley@sifive.com, paulburton@kernel.org, paulmck@kernel.org, tim.bird@sony.com, tsbogend@alpha.franken.de, w@1wt.eu, tanyuan@tinylab.org, i@maskray.me Subject: [PATCH v1 10/14] DCE/DSE: riscv: make every ex_table's name unique Date: Sat, 4 Nov 2023 00:02:18 +0800 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrgz:qybglogicsvrgz5a-1 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 03 Nov 2023 09:02:53 -0700 (PDT) gc-sections require section names to be unique. Signed-off-by: Yuan Tan Signed-off-by: Zhangjin Wu --- arch/riscv/include/asm/asm-extable.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/riscv/include/asm/asm-extable.h b/arch/riscv/include/asm/asm-extable.h index 00a96e7a9664..d0be5a838242 100644 --- a/arch/riscv/include/asm/asm-extable.h +++ b/arch/riscv/include/asm/asm-extable.h @@ -9,10 +9,12 @@ #ifdef CONFIG_MMU +#include + #ifdef __ASSEMBLY__ #define __ASM_EXTABLE_RAW(insn, fixup, type, data) \ - .pushsection __ex_table, "a"; \ + .pushsection __SECTION_NAME(__ex_table), "a"; \ .balign 4; \ .long ((insn) - .); \ .long ((fixup) - .); \ @@ -31,7 +33,7 @@ #include #define __ASM_EXTABLE_RAW(insn, fixup, type, data) \ - ".pushsection __ex_table, \"a\"\n" \ + ".pushsection " __SECTION_NAME(__ex_table) ", \"a\"\n" \ ".balign 4\n" \ ".long ((" insn ") - .)\n" \ ".long ((" fixup ") - .)\n" \ -- 2.34.1