One of the things that gets run against tools here is annobin and annocheck,
and it is complaining about the fact that these are not optimized. It looks
like most use cases could be switched to explicit_bzero() calls. Instead of
the __no_optimize could something like the following be done instead?
-void * __no_optimize
-__memset(void *s, int c, size_t n)
+void *
__memset(void *s, int c, size_t n)
{
- return memset(s, c, n);
+ memset(s, c, n);
+ asm volatile("" ::: "memory");
+ return s;
}
_______________________________________________
TrouSerS-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-tech