This allows setting different values for e_shentsize, e_shoff, e_shnum
and e_shstrndx fields and is useful for producing broken inputs for various
test cases.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
| test/tools/yaml2obj/elf-header-sh-fields.yaml | ||
|---|---|---|
| 4 ↗ | (On Diff #206613) | Get rid of "At" |
| 9 ↗ | (On Diff #206613) | For consistency with the other test cases, move this YAML after the DEFAULT checks. |
| 43–44 ↗ | (On Diff #206613) | FWIW, I think this is a bug in llvm-readelf. I reckon it should be able to dump the file header regardless of the values, unless it actually has to reference something else (e.g. for many sections). |
| 47 ↗ | (On Diff #206613) | Nit: it would be easier for me to read if -j0x3a has a space in it, i.e. -j 0x3a. |
- Addressed review comments.
| test/tools/yaml2obj/elf-header-sh-fields.yaml | ||
|---|---|---|
| 43–44 ↗ | (On Diff #206613) | Yes, probably. |