PR42951:
When linking an archive with members that have the same name linking fails when using the -wholearchive option. This patch passes the index of the member in the archive to the offset parameter to disambiguate the member.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM with this change.
COFF/Driver.cpp | ||
---|---|---|
191 | Another nit: memberIndex is better than memberOffset because offset implies that that variable contains a distance from the beginning of the file and a current member (which does not always increment by one). |
Comment Actions
Changed memberOffset to memberIndex as suggested by reviwer. Would need someone to commit this for me
Just int would probably be better.