From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23930 invoked by alias); 2 Mar 2020 12:02:05 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 23915 invoked by uid 89); 2 Mar 2020 12:02:04 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=HContent-Transfer-Encoding:8bit X-HELO: mail-pg1-f196.google.com Received: from mail-pg1-f196.google.com (HELO mail-pg1-f196.google.com) (209.85.215.196) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 02 Mar 2020 12:02:03 +0000 Received: by mail-pg1-f196.google.com with SMTP id u12so5323978pgb.10 for ; Mon, 02 Mar 2020 04:02:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=HyzM53tW07q4KEO8Q/BlTsxjfnq0jRmMU4i9NDxC0lk=; b=PtIiSioGcuFE21oYMZEatGu+LoNN801yCDaXHfPfcw1AtI3rimF5ztvi5cw0YR4CUu ZlEuqd4USvdVrSwjIazBaxeoiOCsnLuE+1fOpk4cgdivh1vjPZd8/0X0JoOBTeZnVhYT ieti8qqYZ67Sd4//5bUvm0dyf5JxzQZZPJ2sEGMWI18VSmN1Jfec6fMSq1VEH1U801DR iYNpkXFuPSJZgewG/fMXcoSOaHQZYpB9oNpOYu5I4aT4B43yb4dIRpr3Zqs8viBwSCFO BjrHCOyMRGC97tQyWCnw6bLLwkvlxoiY57InZQM+vrgZsJhhgg86m2lBIBnUfe+0XqiD nVDg== Return-Path: Received: from gnu-cfl-2.localdomain (c-73-93-86-59.hsd1.ca.comcast.net. [73.93.86.59]) by smtp.gmail.com with ESMTPSA id 191sm13345695pfa.142.2020.03.02.04.02.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Mar 2020 04:02:00 -0800 (PST) Received: from gnu-cfl-2.hsd1.ca.comcast.net (localhost [IPv6:::1]) by gnu-cfl-2.localdomain (Postfix) with ESMTP id 73E6CC0041 for ; Mon, 2 Mar 2020 04:01:59 -0800 (PST) From: "H.J. Lu" To: binutils@sourceware.org Subject: [PATCH] Import latest fixes to libiberty from GCC Date: Mon, 02 Mar 2020 12:02:00 -0000 Message-Id: <20200302120159.75711-1-hjl.tools@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2020-03/txt/msg00014.txt lto: Also copy .note.gnu.property section When generating the separate file with LTO debug sections, we should also copy .note.gnu.property section. PR lto/93966 * simple-object.c (handle_lto_debug_sections): Also copy .note.gnu.property section. --- libiberty/ChangeLog | 6 ++++++ libiberty/simple-object.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 8e3408e3ee..fd31323de7 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,9 @@ +2020-03-02 H.J. Lu + + PR lto/93966 + * simple-object.c (handle_lto_debug_sections): Also copy + .note.gnu.property section. + 2020-02-25 Andrew Burgess * rust-demangle.h: Removed. diff --git a/libiberty/simple-object.c b/libiberty/simple-object.c index d9c648af71..e6c466ab76 100644 --- a/libiberty/simple-object.c +++ b/libiberty/simple-object.c @@ -293,6 +293,9 @@ handle_lto_debug_sections (const char *name, int rename) /* Copy over .note.GNU-stack section under the same name if present. */ else if (strcmp (name, ".note.GNU-stack") == 0) return strcpy (newname, name); + /* Copy over .note.gnu.property section under the same name if present. */ + else if (strcmp (name, ".note.gnu.property") == 0) + return strcpy (newname, name); /* Copy over .comment section under the same name if present. Solaris ld uses them to relax its checking of ELF gABI access rules for COMDAT sections in objects produced by GCC. */ -- 2.24.1