From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 95824 invoked by alias); 21 Mar 2018 21:04: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 95238 invoked by uid 89); 21 Mar 2018 21:04:39 -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=-1.0 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy= X-Spam-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: albireo.enyo.de Received: from albireo.enyo.de (HELO albireo.enyo.de) (5.158.152.32) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 21 Mar 2018 21:04:37 +0000 Received: from [172.17.203.2] (helo=deneb.enyo.de) by albireo.enyo.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1eykuQ-0002Dr-8E; Wed, 21 Mar 2018 21:04:34 +0000 Received: from fw by deneb.enyo.de with local (Exim 4.89) (envelope-from ) id 1eykuQ-0007Uu-47; Wed, 21 Mar 2018 22:04:34 +0100 From: Florian Weimer To: "H.J. Lu" Cc: Generic System V Application Binary Interface , gnu-gabi@sourceware.org Subject: Re: RFC: Audit external function called indirectly via GOT References: <20180317133115.GA4681@gmail.com> Date: Mon, 01 Jan 2018 00:00:00 -0000 In-Reply-To: (H. J. Lu's message of "Tue, 20 Mar 2018 09:52:17 -0700") Message-ID: <87370txhr1.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2018-q1/txt/msg00005.txt.bz2 * H. J. Lu: >> Could we ship a template for the PLT entries in ld.so instead? And if >> needed, map it from the file together with an address array, like this? > > This won't work since linker needs to know exactly PLT layout to generate > JUMP_SLOT relocations for LD_AUDIT. Why would we need JUMP_SLOT relocations? Couldn't we install suitable interceptors for GLOB_DAT relocations instead, as long as they resolve to external function symbols?