On 4/23/25 12:33, Pierrick Bouvier wrote:
Else, in case we make this array const, can we expect the linker to deduplicate it? I'm not familiar with how final .data section is assembled.
No, we do not expect de-duplication. It's a "that would technically break the object model" thing. Const or not, static S *a = &(S){ }; static S *b = &(S){ }; assert(a != b); r~