https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91227
--- Comment #13 from Florian Weimer <fw at gcc dot gnu.org> --- (In reply to Marc Glisse from comment #12) > (In reply to Florian Weimer from comment #11) > > GCC on ELF provides defined address ordering for separate objects via linker > > ordering and section attributes. I think part of these extensions is that > > it is possible to check at run time whether an object falls into a specific > > section, and where. Support for this must be preserved in some fashion. > > How about casting to uintptr_t before comparing? It isn't really formalized, > but I think that's the extension gcc provides to safely do such comparisons. I don't see why I cast should magically fix this issue, when it it does not help with broadly similar matters related to aliasing. A documented GCC extensions would help, of course.