Is it ub to have aliasing statics?

I have a custom linker script and can have several non-mutable symbols that are overlapping. But is it UB in Rust to have them? Looking at the godbolt it seems that yes, but why?...

1 Like

This probably isn't settled in Rust yet:

And optimizations of pointer comparisons may be a separate can of worms

1 Like