"H.J. Lu" hjl.tools@gmail.com writes:
Here is the updated patch.
Thanks!
+#ifdef __i386__ +static unsigned int +_get_ssp(void) +{
- unsigned int ssp;
- asm volatile("xor %0, %0\n\trdsspd %0" : "=r" (ssp));
- return ssp;
+} +#else
I take it the rdssp instruction is a nop on older processors? I had a quick look at https://software.intel.com/sites/default/files/managed/4d/2a/control-flow-en... and I don't find any mention of a cpuid bit to check before using this instruction.
Regards, /Niels
nettle-bugs@lists.lysator.liu.se