>>> On 06.11.18 at 23:05, <sstabell...@kernel.org> wrote: > --- a/xen/include/xen/compiler.h > +++ b/xen/include/xen/compiler.h > @@ -99,6 +99,12 @@ > __asm__ ("" : "=r"(__ptr) : "0"(ptr)); \ > (typeof(ptr)) (__ptr + (off)); }) > > +/* > + * Use RELOC_HIDE with symbols such as _stext and _etext to avoid errors > + * on comparing pointers to different objects > + */ > +#define SYMBOL(x) (RELOC_HIDE((unsigned long)(x), 0))
I'm not overly happy with this rather generic name, but I have no better suggestion. I'd appreciate though if you dropped the unnecessary outermost pair of parentheses. Acked-by: Jan Beulich <jbeul...@suse.com> Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel