In our codebase we expect that strings only exist once in the compiled binary. I observe that
-fsanitize=address
can generate duplicated strings in the executable. This breaks our code.
The following godbolt example demonstrates the issue https://godbolt.org/z/G5edcnr5e.
My question is if this an intended behavior or a compiler issue?
-fsanitize=address
that does this. Here is a different example: godbolt.org/z/PeG6sxYff – Saurian