[PATCH] D124865: [AIX] support read global symbol of big archive
James Henderson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 22 01:16:20 PDT 2022
jhenderson added a comment.
I feel like this code is missing testing for the non-error cases. In particular, I'd expect to see some sort of test that shows that the archive symbol table can be read successfully. I think you can do that using `llvm-nm --print-armap`. I'd be surprised if there aren't already equivalent test cases for other formats that do this, so you may be able to copy/modify those to cover big archives too.
================
Comment at: llvm/lib/Object/Archive.cpp:1189-1192
+ if (RawOffset.getAsInteger(10, GlobSymOffset))
+ Err = malformedError(
+ "malformed AIX big archive: global symbol table offset \"" + RawOffset +
+ "\" is not a number");
----------------
Test case?
================
Comment at: llvm/lib/Object/Archive.cpp:1214-1217
+ if (RawOffset.getAsInteger(10, Size)) {
+ Err = malformedError(
+ "malformed AIX big archive: global symbol table size \"" + RawOffset +
+ "\" is not a number");
----------------
Test case?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124865/new/
https://reviews.llvm.org/D124865
More information about the llvm-commits
mailing list