I need this to remove a binary from LLD test suite.
The patch also simplifies the code a bit.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
This is fine as is. Just LLD side requires a slightly more complex test than I expected initially.
It is: https://reviews.llvm.org/D59085
What about support for other invalid data encodings e.g. 3, 4 etc?
lib/ObjectYAML/ELFYAML.cpp | ||
---|---|---|
235–236 ↗ | (On Diff #189667) | I'd completely rewrite the first part of the sentence, up to the comma as "ELFDATANONE is an invalid data encoding, ..." |
test/tools/yaml2obj/elf-header-data.yaml | ||
1 ↗ | (On Diff #189667) | Please name this test after ELFDATANONE, e.g. elfdatanone.yaml or elf-header-elfdatanone.aml etc? |
6 ↗ | (On Diff #189667) | What about llvm-objdump? I'm guessing they all rely on the same Object library, so all get the error from the same place? Perhaps a better test is to show using something like od that the byte at EI_DATA is 0? |
I do not have a use case for that, so I am not sure it is worth to think about that atm.
- Addressed review comments.
test/tools/yaml2obj/elf-header-data.yaml | ||
---|---|---|
6 ↗ | (On Diff #189667) |
Yes.
Done, thanks for the hint about od! |
test/tools/yaml2obj/elf-header-elfdatanone.yaml | ||
---|---|---|
1 ↗ | (On Diff #189687) | YAML -> "YAML file" or "YAML input" |