forked from OSchip/llvm-project
Currently obj2yaml always emits the `EntSize` property when `sh_entsize != 0`. It is not correct. For example, for `SHT_DYNAMIC` section, `EntSize == 0` is abnormal, while `sizeof(ELFT::Dyn)` is the expected default. To reduce the output produces we should not dump default values. yaml2obj tests that shows `sh_entsize` values produced are: 1) For `SHT_REL*` sections: `yaml2obj\ELF\reloc-sec-entry-size.yaml` 2) For `SHT_DYNAMIC`: `yaml2obj\ELF\dynamic-section.yaml` Differential revision: https://reviews.llvm.org/D76227 |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| Error.cpp | ||
| Error.h | ||
| coff2yaml.cpp | ||
| dwarf2yaml.cpp | ||
| elf2yaml.cpp | ||
| macho2yaml.cpp | ||
| minidump2yaml.cpp | ||
| obj2yaml.cpp | ||
| obj2yaml.h | ||
| wasm2yaml.cpp | ||
| xcoff2yaml.cpp | ||