From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 46CCBC35670 for ; Mon, 24 Feb 2020 00:31:32 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E187520675 for ; Mon, 24 Feb 2020 00:31:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=ellerman.id.au header.i=@ellerman.id.au header.b="MAa2CVzD" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E187520675 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 48Qjfm0lKbzDqR2 for ; Mon, 24 Feb 2020 11:31:28 +1100 (AEDT) Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 48Qjcv74YWzDqLn for ; Mon, 24 Feb 2020 11:29:51 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=ellerman.id.au header.i=@ellerman.id.au header.a=rsa-sha256 header.s=201909 header.b=MAa2CVzD; dkim-atps=neutral Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 48Qjcs6qCRz9sP7; Mon, 24 Feb 2020 11:29:49 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1582504189; bh=fq+U1JY4Bj/ArorQIFPhS/G3I5kh+b9vUKRbrQLIob0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=MAa2CVzDDOKwqeN9B/Jpad6SeBdowjHp0QC00NB5la1JJSn4J4Vvz1oWJifK8LfHC G+aiy1/5+x6q9mwGSFrjVfnBEAxd5f5P+Ch1KyBeV1JVIPjcQIAeKNyUjUlikHKsi1 v18u0mH+jxffHs6hu4EkNnaRf8/8x7jhQFxXCDXU5her/qTyOz8dDkBpdH8kkm+a51 jUjEeS5Ji/Smz8bC3MXaFLRpkd5K3FAA+4weYZ1RDq7tPbpOqRwXBnQt9aZ133SZ9L 44t4BLrHiLZVUpQEdsbZKaGgD/fECpkSxcwo6HBB92/RX/plmOcq8SWo3ecp0PzD1V jbJM7J+Lz2YVg== From: Michael Ellerman To: "Naveen N. Rao" Subject: Re: [PATCH] powerpc: Include .BTF section In-Reply-To: <20200220113132.857132-1-naveen.n.rao@linux.vnet.ibm.com> References: <20200220113132.857132-1-naveen.n.rao@linux.vnet.ibm.com> Date: Mon, 24 Feb 2020 11:29:47 +1100 Message-ID: <8736b0j090.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 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+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" "Naveen N. Rao" writes: > Selecting CONFIG_DEBUG_INFO_BTF results in the below warning from ld: > ld: warning: orphan section `.BTF' from `.btf.vmlinux.bin.o' being placed in section `.BTF' > > Include .BTF section in vmlinux explicitly to fix the same. I don't see any other architectures doing this in their linker script. Why are we special? cheers > diff --git a/arch/powerpc/kernel/vmlinux.lds.S b/arch/powerpc/kernel/vmlinux.lds.S > index b4c89a1acebb..a32d478a7f41 100644 > --- a/arch/powerpc/kernel/vmlinux.lds.S > +++ b/arch/powerpc/kernel/vmlinux.lds.S > @@ -303,6 +303,12 @@ SECTIONS > *(.branch_lt) > } > > +#ifdef CONFIG_DEBUG_INFO_BTF > + .BTF : AT(ADDR(.BTF) - LOAD_OFFSET) { > + *(.BTF) > + } > +#endif > + > .opd : AT(ADDR(.opd) - LOAD_OFFSET) { > __start_opd = .; > KEEP(*(.opd)) > -- > 2.24.1