From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 50744 invoked by alias); 22 Mar 2018 16:01:17 -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 50724 invoked by uid 89); 22 Mar 2018 16:01:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.4 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=mpx, MPX, H*Ad:U*fw, choices X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: mail-ot0-f172.google.com Received: from mail-ot0-f172.google.com (HELO mail-ot0-f172.google.com) (74.125.82.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 22 Mar 2018 16:01:10 +0000 Received: by mail-ot0-f172.google.com with SMTP id v23-v6so10010270oth.9 for ; Thu, 22 Mar 2018 09:01:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=zC7xSxlqg+jEu0a9GwaDa4Afwyfb12Be/K7LtlQbg7k=; b=RZ/N2nFqWwH40oRpi3VLM+Z7EobzvKgBCAotNX1eZHGLoWCAjjIALIauGJr8m67aB1 yU61ppDDGXddLvWWyWUSvmgsv4XcLowEV/Arz3ntru93itRRk4Bf45Kr8ZonCY3dXGj+ QlJsOebeVUVQheJCQkDI3rhzTzo7qyfc2UbctQ24Ia3OFupfKhPIKqhiVYLXrwb38kef d3WxkbEUNIPoF3JW319zvHg78Ef5lZwCHqyOx0kN1dQAHH/hvjWN3QihAoylN8zM6pCW 5gQCrzo+63Yt9QjqWiktN/dYn+xZpxs0Vd8OZNw8JSurlyXv0ewWLFscBLXWLd3zlr0A qq5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=zC7xSxlqg+jEu0a9GwaDa4Afwyfb12Be/K7LtlQbg7k=; b=jQpG5DLM3TveTXKj96CRop08ytd/AIpvGqZRvJx4THPE/Vz8ov2TGpbiLGqmFQZ5tL ZlkQ6DxfoGy9yCfkQfiEG0THM875xmZ9Nhh9BCSgW/fiXves4D4EuABVSs/s663z117k H8PV3Dt5lvqyvrI3yQ/TmdkXV2lStwmBgLb+89dYoYLsNhEwHYm59Zg4aZ+JcX765nS+ 3HjV5rljVb4Q4Ho+vXTvZ9QtmA3+xzeoz2RLWH3LmX1hfIem0DKtSo6/+RUrLmEAL94o wzHrb6uGGW/IyG7Q/KzVRFdb0I8HJLEWt/FNiv+PNshnr6+Jx7hVZ0Umcu+sJ2+q2Xy3 P9iw== X-Gm-Message-State: AElRT7HOgMLbYwit1PQZctEQhYy+uYJSep5eoj4njy60GpAPA1LaqJR+ ao3FUppkpVRkVqxH0TTGzsvh7lQS1f0ztyH8G1A= X-Google-Smtp-Source: AIpwx48/GnmM8F7Ah1u9E4KUIelms5IP3TrMkVD7InjhTg2vbsEEP3lQjQ07dYj5UX3QYN6zaKIPtkpBOwuVg38ykMs= X-Received: by 2002:a9d:171e:: with SMTP id i30-v6mr613689ota.204.1521734466698; Thu, 22 Mar 2018 09:01:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.10.20 with HTTP; Thu, 22 Mar 2018 09:01:05 -0700 (PDT) In-Reply-To: <76f5551d-e8dc-4915-e3d8-54a2305a5718@redhat.com> References: <20180317133115.GA4681@gmail.com> <87370txhr1.fsf@mid.deneb.enyo.de> <3a203b82-1247-5538-4848-92c9227cc77e@redhat.com> <87po3wo589.fsf@mid.deneb.enyo.de> <76f5551d-e8dc-4915-e3d8-54a2305a5718@redhat.com> From: "H.J. Lu" Date: Mon, 01 Jan 2018 00:00:00 -0000 Message-ID: Subject: Re: RFC: Audit external function called indirectly via GOT To: "Carlos O'Donell" Cc: Florian Weimer , Generic System V Application Binary Interface , gnu-gabi@sourceware.org Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2018-q1/txt/msg00017.txt.bz2 On Thu, Mar 22, 2018 at 8:36 AM, Carlos O'Donell wrote: >> Using ld.so-generated thunks for all GLOB_DAT function symbol >> relocations would happen in audit mode only and should work with >> existing binaries which were built with -Wl,-z,now. > > This is a very good reason to prefer one method over another, that we > could fix existing binaries. However, I still think the complexity of > such a fix outweighs what we are trying to fix. Do we have another use > for such stubs? If you take a look at BFD linker, it generates different PLT layouts for MPX and CET. It is totally transparent to ld.so. Putting all PLT choices as well as adding new ones in ld.so is very complex. I don't believe they belong to ld.so. -- H.J.