On Mon, 2 Sep 2024, Evgeny Karpov wrote:
The patch adds support for weak references. The original MinGW
implementation targets ix86, which handles weak symbols differently
compared to AArch64.
Please clarify this statement.
There is no difference between architectures with respect to how weak
symbols work in COFF objects - this is how it works in LLD for MinGW
targets.
If there are limitations in the implementation of weak symbols for x86
COFF object files in Binutils, then I would recommend unifying it, and
fixing whichever architecture handles them incorrectly.
Thus - please clarify whether you claim that this is a spec issue, that
weak symbols are supposed to behave differently, or whether it is an
implementation issue with Binutils that you are working around.
// Martin