On 4/23/25 13:04, Richard Henderson wrote:
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);
I see.
However, it's only type names, and not really object models (we don't
duplicate interfaces themselves, but list of interfaces).
Or did I miss something in QOM?
r~