Received: from eggs.gnu.org ([2001:4830:134:3::10]:57834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkCVo-0002r0-Hz for qemu-devel@nongnu.org; Wed, 14 Sep 2016 11:54:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkCVk-0008RT-Om for qemu-devel@nongnu.org; Wed, 14 Sep 2016 11:54:11 -0400 Received: from mail-yw0-f170.google.com ([209.85.161.170]:33116) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkCVk-0008RN-Jf for qemu-devel@nongnu.org; Wed, 14 Sep 2016 11:54:08 -0400 Received: by mail-yw0-f170.google.com with SMTP id i129so27735128ywb.0 for ; Wed, 14 Sep 2016 08:54:08 -0700 (PDT) Sender: Richard Henderson References: <1473800239-13841-1-git-send-email-rth@twiddle.net> <1f1996f1-1e91-6b2d-2c76-34a592066d76@twiddle.net> <6c0a2f11-1799-830e-b947-16878781e667@redhat.com> From: Richard Henderson Message-ID: <347e8eab-c287-c28f-ce10-e0ead809f1fc@twiddle.net> Date: Wed, 14 Sep 2016 08:53:01 -0700 MIME-Version: 1.0 In-Reply-To: <6c0a2f11-1799-830e-b947-16878781e667@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v5] cutils: Rewrite x86 buffer zero checking List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel@nongnu.org On 09/14/2016 01:56 AM, Paolo Bonzini wrote: >> I was hoping to avoid an extra RELATIVE relocation in the (normal) PIE >> case. > > There would be no relocation for 0 and NULL, right? GCC would actually > put them in bss, IIRC. Ah, I now see your complaint. You'd prefer "type var = INIT" over "type var INIT". In which case, yes, 0 and NULL work just fine. r~