[PATCH, GCC, AARCH64] Add GNU note section with BTI and PAC.

Sudakshina Das Sudi.Das@arm.com
Thu Apr 4 16:01:00 GMT 2019


Hi Richard

On 03/04/2019 11:28, Richard Henderson wrote:
> On 4/3/19 5:19 PM, Sudakshina Das wrote:
>> +      /* PT_NOTE header: namesz, descsz, type.
>> +	 namesz = 4 ("GNU\0")
>> +	 descsz = 16 (Size of the program property array)
>> +	 type   = 5 (NT_GNU_PROPERTY_TYPE_0).  */
>> +      assemble_align (POINTER_SIZE);
>> +      assemble_integer (GEN_INT (4), 4, 32, 1);
>> +      assemble_integer (GEN_INT (16), 4, 32, 1);
> 
> So, it's 16 only if POINTER_SIZE == 64.
> 
> I think ROUND_UP (12, POINTER_BYTES) is what you want here.
>


Ah yes. I have made that change now.

Thanks
Sudi

> 
> r~
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: rb10093.patch
Type: text/x-patch
Size: 4086 bytes
Desc: rb10093.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190404/0e4c0d52/attachment.bin>


More information about the Gcc-patches mailing list