From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by sourceware.org (Postfix) with ESMTPS id D28E33839809 for ; Mon, 21 Jun 2021 13:54:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D28E33839809 Received: by mail-ed1-x536.google.com with SMTP id s6so19027021edu.10 for ; Mon, 21 Jun 2021 06:54:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QallclxRbjm3r7H6ihql8GPN26C/bYy+00eLSSxIYyo=; b=nd4vubLXJewPM4FbA/LTMnptZMsQdBuqXPXv8Elbfu/gTOYKEaGoIIfzg1BMilVlIr Eq+EyNQN2D57ffol9GsD/NxMmoNGCWYmloWGVxD5FbDym3iI3nHy8H2qIvFheJu/DfbQ WsNGyvnp3/ulQisCIzR14nozkZ19qF1lWEhr8kIoYro8+BtZUK18LxJbxEB4cBIlZ84B nATig2DWxyURtyBWQbMpy6qxJjec1AWPKu09fu5/MP5OqT25FpANc6yD78UDq8ZRnox/ t/Ap0gvRb5bhjHQN5Cgrj8dCB4t9pQZBEX9UQZV8/Oiol9LUWfGwfWJIznGaOPaWdeAf NRPA== X-Gm-Message-State: AOAM530tLXqMbcXsHN1TG5k61e6FcVp1GJZlS0QdMbnXIZzC7nkptdRg Lcv/Aa8CzYMIKdkL0ed9glhGaUQQtg79K9lU9ko= X-Google-Smtp-Source: ABdhPJz6Em4p3Vo6e6g1/yYYrT4t8EoCajO7JPwugeSkkGpFjpSKnFazBYGlfhid1kq/bNL/8CmSkGCQ74c99o6aHN8= X-Received: by 2002:a05:6402:50d1:: with SMTP id h17mr21197264edb.214.1624283648785; Mon, 21 Jun 2021 06:54:08 -0700 (PDT) MIME-Version: 1.0 References: <20210531165802.5686-1-jose.marchesi@oracle.com> <20210531165802.5686-8-jose.marchesi@oracle.com> In-Reply-To: <20210531165802.5686-8-jose.marchesi@oracle.com> From: Richard Biener Date: Mon, 21 Jun 2021 15:53:58 +0200 Message-ID: Subject: Re: [[PATCH V9] 7/7] libiberty: copy over .BTF section when using LTO To: "Jose E. Marchesi" Cc: GCC Patches Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jun 2021 13:54:11 -0000 On Mon, May 31, 2021 at 7:19 PM Jose E. Marchesi via Gcc-patches wrote: > > libiberty/ChangeLog: OK. You can apply this separately. I still believe LTO support is kind-of broken, but well ;) Richard. > * simple-object.c (handle_lto_debug_sections): Copy over .BTF section. > --- > libiberty/simple-object.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/libiberty/simple-object.c b/libiberty/simple-object.c > index 909995dd166..facbf94fd09 100644 > --- a/libiberty/simple-object.c > +++ b/libiberty/simple-object.c > @@ -307,6 +307,9 @@ handle_lto_debug_sections (const char *name, int rename) > /* Copy over .ctf section under the same name if present. */ > else if (strcmp (name, ".ctf") == 0) > return strcpy (newname, name); > + /* Copy over .BTF section under the same name if present. */ > + else if (strcmp (name, ".BTF") == 0) > + return strcpy (newname, name); > free (newname); > return NULL; > } > -- > 2.25.0.2.g232378479e >