From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 106267 invoked by alias); 19 Feb 2020 12:30:40 -0000 Mailing-List: contact gnu-gabi-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: gnu-gabi-owner@sourceware.org Received: (qmail 95953 invoked by uid 89); 19 Feb 2020 12:30:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.100.3 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=H*f:sk:LLuqypO, H*i:sk:LLuqypO, HX-Languages-Length:1168 X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on sourceware.org X-Spam-Level: X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-ot1-f65.google.com Received: from mail-ot1-f65.google.com (HELO mail-ot1-f65.google.com) (209.85.210.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 19 Feb 2020 12:30:31 +0000 Received: by mail-ot1-f65.google.com with SMTP id i6so22925485otr.7; Wed, 19 Feb 2020 04:30:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pKzuygK115DCiN8ReWlJHbr9YFHkyHzdBW5E/hhuKrs=; b=rJEt/2316vAICi/+hcq8wQ10GLyRQZT3b63my1heN/I5KblCnhmWAAOF0kgWtKKErb x2MI5969OFgIbUERR7Vpl7NxRDdSYENx0cnpNNCfc33Vi/HxNZmrbYOk/QyPBMo9Vx9L 05NLQXW4SqVj6612u7uOwqnRvGXGopngCxH0ds7R569Dsy51A20Ji8uMqcbYwpBkneST loUmsnCTIpj/KPr/dNzixG/wPJzze4LUXghW1nDdVWzoMjwc3ZvCHBA41YblzVZEOdve BGvMwbFoA1Sd3vY2cOEXzX+2EUeou7W3IMc3cM0uRI9xgobxlR5n3RluyW3EiLY0ZfCy vPWQ== 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=pKzuygK115DCiN8ReWlJHbr9YFHkyHzdBW5E/hhuKrs=; b=Me26CdAuGYy4QZH3Yr8J+SjEw2GvTjZY4Y9q+YhcH/qvCC2zTjqwo7f/4SuaQ6C8Qu q9BFfJHLjaMQOg8yzCyjKtErEs0fm83K5DIEeYeKSyhxQA9Av4338Mg3n8pyPrSILnc/ ipvzFSwU4trB7dnqbs09YpueLic9VUvUtV61UyaHt6MK/zMX0uoh0SS3QrcNlsi8u98M IUod3+Z1+D27Ek2OQSHhmnqOKSxILJle63s7SRgvyUXKVn3WF5+Z/FJqzAH6cAifulnd XiX/SshFlNFchdB4UUnqg0dxPwXMJ4k6bLd5mC2D9KWANt27LQ/SYxxlo0EIrTmH8fwA 7i6A== X-Gm-Message-State: APjAAAUu/zo7Z5Jac3SAjRDvaId9WMVw0lbQh9N7NVPiC0zPRsgI0vqo z8g0kw8NzP/BoIsmDuq1lO+XHK7pU2lEA2JBn6w= X-Google-Smtp-Source: APXvYqxFhZsWEY3kTUh9ZaUxidM4QFHuwEDdRLuHrQ+ay7r0bBXsoV/WDBiEqDOh7ptqNc9fUXx6LdBi6tORFnCRWiw= X-Received: by 2002:a9d:7590:: with SMTP id s16mr18315586otk.89.1582115414216; Wed, 19 Feb 2020 04:30:14 -0800 (PST) MIME-Version: 1.0 References: <20200219023120.gvr4ajolbjbqcfix@google.com> <6bf04476b559f11965b4474b500156e26949ffc2.camel@klomp.org> In-Reply-To: From: "H.J. Lu" Date: Wed, 01 Jan 2020 00:00:00 -0000 Message-ID: Subject: Re: binutils ld and new PT_GNU_PROPERTY segment To: Mark Wielaard Cc: Fangrui Song , "Zhang, Annita" , gnu-gabi , Binutils Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2020-q1/txt/msg00009.txt On Wed, Feb 19, 2020 at 4:28 AM H.J. Lu wrote: > > On Wed, Feb 19, 2020 at 4:02 AM Mark Wielaard wrote: > > > > Hi, > > > > On Wed, 2020-02-19 at 03:39 -0800, H.J. Lu wrote: > > > On Wed, Feb 19, 2020 at 2:58 AM Mark Wielaard wrote: > > > > On Tue, 2020-02-18 at 18:31 -0800, Fangrui Song wrote: > > > > > From what I can see, neither the Linux kernel nor glibc uses > > > > > PT_GNU_PROPERTY. > > > > > glibc/sysdeps/x86/dl-prop.h parses PT_NOTE. > > > > > > > > That is my impression too. > > > > > > See: > > > > > > https://patchwork.kernel.org/patch/11285409/ > > > > > > It is for both x86 and arm64. > > > > So that is not upstream in the mainline kernel? Why can't that patch > > use the existing PT_NOTE segment? That would make it compatible with > > existing binaries that don't have this PT_GNU_PROPERTY program header. > > Kernel loader is one of motivations of PT_GNU_PROPERTY. Kernel loader > only wants to check PT_XXX. > This is one thread on kernel mailing list: https://lore.kernel.org/lkml/87imt4jwpt.fsf@oldenburg2.str.redhat.com/ -- H.J.