Because of a bug we did not report a error in the case
shown in the test. With this patch we do.
Details
Diff Detail
Event Timeline
tools/obj2yaml/elf2yaml.cpp | ||
---|---|---|
380 | So this prepends a message to the existing toString(LinkSection.takeError()). LGTM, but let's see what james wants to say. |
tools/obj2yaml/elf2yaml.cpp | ||
---|---|---|
380 |
Yeah, but the initial probem was in double takeError() call. As a result no error was reported at all. |
Sorry, it's been a busy couple of days, and I ran out of time to look at this yesterday. Code change looks fine. Just a comment about the test.
test/tools/obj2yaml/elf-shlink.yaml | ||
---|---|---|
1 | Should we have a test case to show that it can handle the elf-shlink value otherwise, or does that already exist? If it already exists (or for some reason don't want it), perhaps you should rename this file elf-shlink-invalid.yaml. |
No worries at all. I shouldn't have to ping you first of all, since LLVM policy suggest to do this once in a ~week.
(I just supposed you probably missed this comment for some reason, but there is definetely no need to rush in this or another patches I post).
Thanks for looking!
- Addressed review comments.
test/tools/obj2yaml/elf-shlink.yaml | ||
---|---|---|
1 |
We have a lot of tests in tools/obj2yaml that do something like: Link: .dynsym. I.e. refer to an existent section by name. So, I think you're right anf it might worth to test the behavior explicitly here. I added the tests. |
Should we have a test case to show that it can handle the elf-shlink value otherwise, or does that already exist?
If it already exists (or for some reason don't want it), perhaps you should rename this file elf-shlink-invalid.yaml.