[PATCH] D127135: [Object][Archive] Support a new archive member /<ECSYMBOLS>/

Pengxuan Zheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 7 10:44:39 PDT 2022


pzheng added a comment.

In D127135#3563314 <https://reviews.llvm.org/D127135#3563314>, @jhenderson wrote:

> In D127135#3561301 <https://reviews.llvm.org/D127135#3561301>, @pzheng wrote:
>
>> In D127135#3561269 <https://reviews.llvm.org/D127135#3561269>, @thieta wrote:
>>
>>> I think you can drop the content lines from the test cases. But other that that it looks fine.
>>
>> I tried removing the content lines from the test case, but got the following error somehow. Any idea?
>>
>> "truncated or malformed archive (offset to next archive member past the end of the archive after member foo-arm64ec.obj)"
>
> Did you update the `Size` fields too? I suspect those might be the problem. I also think you should inline the test input into the test file, since it's presumably only going to be used in the one test - having the test input close to the test commands themselves makes it easier to see what the test is doing. Finally, if you don't need all the library members for the test (it doesn't look to me like you do), you should remove them, leavnig only the ECSYMBOLS one.

Thanks for the tips, @jhenderson. The error is gone after updating the size field. I just pushed the changes to the test here: https://reviews.llvm.org/D127235.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D127135/new/

https://reviews.llvm.org/D127135



More information about the llvm-commits mailing list