From owner-svn-src-head@freebsd.org Fri May 11 02:17:27 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6D000FB0580; Fri, 11 May 2018 02:17:27 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-it0-x244.google.com (mail-it0-x244.google.com [IPv6:2607:f8b0:4001:c0b::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0810D69E1D; Fri, 11 May 2018 02:17:26 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-it0-x244.google.com with SMTP id n202-v6so397526ita.1; Thu, 10 May 2018 19:17:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=Env5SUrPEHf14ri4QpKkqeJk+KCR2sALi8iYIU8RC3w=; b=WDwA15GNrE/E9llfg6ANTMeNf/sq8OfmazpG5XbRzbBWPxUdYMjDtRxGa3wb2ckN1/ j7ruUFfVkF2/cmskODLdqavnT4KCqvj9BLuLpVNEebZLBGMJ/UwpkV42V/BnO80vlg3B WCtJowofo3PKIAZuLVZV0rpZg+DUwMVJFCxfES7Rn9Au7RWLN/anFvsOy09BJvsMuUkS kPUsaNIP94+fSIoUX8Khi+L38ZE4oE8m+kBAvSdKycu1GyRIaN1lanEnb43zMHKtSNUO kRHv5H77bN7ODFPfa23xN+xjUvmzQcupw+8NICJ4QZqjFZXLlFOf8NFI7gFzpH8G9RSL U5jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=Env5SUrPEHf14ri4QpKkqeJk+KCR2sALi8iYIU8RC3w=; b=hPf1VlVd6UDJYJwJaicAd5BREAAg8LsPm6TEcZHDUu65p9Pc31Wh92A0X0GQjA0e4A yyhWDxJvIJic2mN6HW+bHr/Wd4924lHZ7Wowz9Xy4G0HE/4gnzu45+/J7Ia9e0q40qgn EqkCZuFadGCmQrnijxPqwotBQRRzzMeao4C1CudVhAPK/xO290V6pCu2DDwssVgCfLTx JE48tIzYxrYwaHDx5Pwn4/VZQVh2rkNbn2em/UXOzImSHhB6mi3zDDaFpn14SYw70XkS N3BKQM8pxIg6euptGOuo4u06w2IAwJhSfqBgXeT0OqLhm2dETOaByQBH8xmfmEGFFGiU p5YA== X-Gm-Message-State: ALKqPwdUHyMa1GqRhlOerbggaUImtnXZBoY+FZcqncMrHIQKzT7rC4pV HeYxIk9cWdnHO5knpFg1Dk/nsoYAVrkra0d5nSM= X-Google-Smtp-Source: AB8JxZrK0NEeLuwGnlNUWRu2GW+e7GeSQHs1v1rC7614aykEI7HC7rUFPZUzPJWvTPdwG3iXTnOlcA5sJLMYx2y7R8Q= X-Received: by 2002:a24:3555:: with SMTP id k82-v6mr1335495ita.49.1526005046490; Thu, 10 May 2018 19:17:26 -0700 (PDT) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.130.167 with HTTP; Thu, 10 May 2018 19:17:06 -0700 (PDT) In-Reply-To: <20180510193816.GF6887@kib.kiev.ua> References: <201805101501.w4AF1iI0039082@repo.freebsd.org> <20180511012309.V3949@besplex.bde.org> <20180510193816.GF6887@kib.kiev.ua> From: Ed Maste Date: Thu, 10 May 2018 22:17:06 -0400 X-Google-Sender-Auth: I2mFA-KC1AD1FBWbo5uTSHgZWkI Message-ID: Subject: Re: svn commit: r333461 - head/sys/amd64/amd64 To: Konstantin Belousov Cc: Bruce Evans , src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 May 2018 02:17:27 -0000 On 10 May 2018 at 15:38, Konstantin Belousov wrote: > > Yes, I already noted and mjg noted that ifuncs are directed through PLT. > I remember that it was not the case when I did it the first time, but then > both compiler and linker were different. I'm trying to find evidence of non-PLT ifuncs, but have been unsuccessful so far. >From ifunc.txt at https://sites.google.com/site/x32abi/documents: | All references to a STT_GNU_IFUNC symbol, including function call and | function pointer, will go through a PLT slot, which jumps to the address | stored in the GOT entry. If the STT_GNU_IFUNC symbol is locally defined, | a R_*_IRELATIVE relocation will be applied to the GOT entry at load time. | Otherwise, dynamic linker will lookup the symbol at the first call to the | function and update the GOT entry. This applies to all usages of | STT_GNU_IFUNC symbols in shared library, dynamic executable and static | executable.