From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 110474 invoked by alias); 9 Sep 2019 04:28:58 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 110410 invoked by uid 89); 9 Sep 2019 04:28:57 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-21.7 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_HELO_PASS,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 spammy=rename, HX-Languages-Length:785, Copy X-HELO: userp2130.oracle.com Received: from userp2130.oracle.com (HELO userp2130.oracle.com) (156.151.31.86) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 09 Sep 2019 04:28:56 +0000 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x894NpvP004463 for ; Mon, 9 Sep 2019 04:28:54 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : in-reply-to : references; s=corp-2019-08-05; bh=BqORXCZ0FGw+A9akJLb/DjvB6ZqCI80+XJdlUL0r87I=; b=Tl+8anL3yvpIW71BdDNeMFKFx2VnrwFNbuz7EGG+pPuR8sAtoez8Ykfn0ShZliYwiq35 z2Y1brq7PvIi8Mj7BnvlEAguEUcWYKX3GPqoQ3/1ccwRJNJZfQpzQ4cbAwkEaTdXxmkw 1aBad/Z8qIj7kG/6mS5Bvgep6EhVLK2VAZYp3xmjnUl2ojwnGfeiP2zQtiwfpHoR4UgG r2ery1yQlDv9yPqbkyhUrWJYfX30FIk85D9EJK05SVPtYOGXYMO62gxSqM1LNI9Fh0Va b4e1Upf2oGMWj2E1lzpILTxonM4P56/nkW3tXHd5zgExJRc4pVXhjwd8zw/jRvy9tmIM 0A== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2130.oracle.com with ESMTP id 2uw1m8hhjq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 09 Sep 2019 04:28:54 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x894SnxS062990 for ; Mon, 9 Sep 2019 04:28:53 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3030.oracle.com with ESMTP id 2uv2ky9hjr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 09 Sep 2019 04:28:50 +0000 Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x894SVrW016106 for ; Mon, 9 Sep 2019 04:28:33 GMT Received: from ibhagatpc.us.oracle.com (/10.65.144.100) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 08 Sep 2019 21:28:30 -0700 From: Indu Bhagat To: gcc-patches@gcc.gnu.org Subject: [PATCH,RFC,V5 6/6] Handle CTF sections when LTO is enabled Date: Mon, 09 Sep 2019 04:28:00 -0000 Message-Id: <1568003301-11457-7-git-send-email-indu.bhagat@oracle.com> In-Reply-To: <1568003301-11457-1-git-send-email-indu.bhagat@oracle.com> References: <1568003301-11457-1-git-send-email-indu.bhagat@oracle.com> X-SW-Source: 2019-09/txt/msg00460.txt.bz2 libiberty/ChangeLog: * simple-object.c (handle_lto_debug_sections): Copy CTF section. --- libiberty/ChangeLog | 5 +++++ libiberty/simple-object.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/libiberty/simple-object.c b/libiberty/simple-object.c index b00c265..96bdcf8 100644 --- a/libiberty/simple-object.c +++ b/libiberty/simple-object.c @@ -298,6 +298,9 @@ handle_lto_debug_sections (const char *name, int rename) COMDAT sections in objects produced by GCC. */ else if (strcmp (name, ".comment") == 0) return strcpy (newname, name); + /* Copy over .ctf section under the same name if present. */ + else if (strcmp (name, ".ctf") == 0) + return strcpy (newname, name); free (newname); return NULL; } -- 1.8.3.1