[PATCH] D144872: [AIX] Align the content of an xcoff object file which has auxiliary header in big archive.
Digger Lin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 6 08:08:46 PDT 2023
DiggerLin marked an inline comment as done.
DiggerLin added inline comments.
================
Comment at: llvm/test/Object/archive-malformed-object.test:32-33
-## Don't emit an error if the symbol table is not required.
-# RUN: llvm-ar rcS good.a input.o input.bc
+## Don't emit an error if the symbol table is not required for gnu format.
+# RUN: llvm-ar --format=gnu rcS good.a input.o input.bc
# RUN: llvm-ar t good.a | FileCheck %s --check-prefix=CONTENTS
----------------
jhenderson wrote:
> Do we need to be explicit about gnu format? If the archive format is derived from the first member, this won't be big archvie, right? If we don't need to be explicit, please remove the `--format` option, so that it can capture more cases. If for whatever reason it would be bigarchive without the format option, it's fine to leave as-is.
>
> In either case, I suggest changing the comment to say "not required for formats other than the big archive format." as it's not specifically gnu format here that's important.
input.o is malformed object file, the archive format will depend on the getDefaultKindForHost(). So the --format=gnu is need here.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144872/new/
https://reviews.llvm.org/D144872
More information about the llvm-commits
mailing list