[AIX] Fixed malformed big archive when total archive file size is large than 4Gbytes
authorzhijian <zhijian@ca.ibm.com>
Tue, 16 May 2023 14:13:57 +0000 (10:13 -0400)
committerzhijian <zhijian@ca.ibm.com>
Tue, 16 May 2023 14:13:57 +0000 (10:13 -0400)
commitd78a723743b29476c2827801fea6a3a4b29a5240
treee98e7ebf78203d3426fa0d26fadfd7bd51f79f48
parent3ce72cd5f6d584d83d47e54edef5c132a6c3703d
[AIX] Fixed malformed big archive when total archive file size is large than 4Gbytes

Summary:

1. we use the unsigned type for NextOffset,PrevOffset ,GlobalSymbolOffset , MemberTableSize, it will caused a malform big archive when the archive file size is large than 4G.
2. also fix a NFC comment on https://reviews.llvm.org/D142479#inline-1443927

Reviewers: James Henderson
Differential Revision: https://reviews.llvm.org/D150462
llvm/lib/Object/ArchiveWriter.cpp