"H.J. Lu" <hjl.to...@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-enforcement-technology-preview.pdf and I don't find any mention of a cpuid bit to check before using this instruction. Regards, /Niels -- Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677. Internet email is subject to wholesale government surveillance. _______________________________________________ nettle-bugs mailing list nettle-bugs@lists.lysator.liu.se http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs