[PATCH v1 4/7] bfd: fix memory leak when default-initializing an OAv2 attribute

Andreas Schwab schwab@linux-m68k.org
Thu Feb 5 18:25:03 GMT 2026


On Feb 05 2026, Jan Beulich wrote:

> Correct. But a dedicated initializer should work, aiui, for those being specified
> to work like static storage duration initializers.

That only works if the union is default-initialized (for example, if the
union is part of another aggregate and the initializer only initializes
other parts of the aggregate, in which case the default-initializer for
the union clears the first alternative _plus_ any padding).

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."


More information about the Binutils mailing list