[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v5] cutils: Rewrite x86 buffer zero checking
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [PATCH v5] cutils: Rewrite x86 buffer zero checking |
Date: |
Wed, 14 Sep 2016 08:53:01 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
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~