SuccessChanges

Summary

  1. [yaml2obj] - Make .symtab to be not mandatory section for SHT_REL[A] (details)
Commit 3fe7f1dcf44ced0648fd0aef2b33056bbee37881 by grimar
[yaml2obj] - Make .symtab to be not mandatory section for SHT_REL[A]
section.
Before this change .symtab section was required for SHT_REL[A] section
declarations. yaml2obj automatically defined it in case when YAML
document did not have it.
With this change it is now possible to produce an object that has a
relocation section, but has no symbol table.
It simplifies the code and also it is inline with how we handle Link
fields for another special sections.
Differential revision: https://reviews.llvm.org/D69260
The file was modifiedllvm/lib/ObjectYAML/ELFEmitter.cpp
The file was modifiedllvm/test/Object/objdump-sectionheaders.test
The file was modifiedllvm/test/Object/invalid.test
The file was modifiedllvm/test/tools/llvm-readobj/elf-reloc-negative-addend-no-sym.test
The file was modifiedllvm/test/tools/llvm-objcopy/ELF/no-symbol-relocation.test
The file was modifiedllvm/test/tools/obj2yaml/elf-ppc64-relocations.yaml
The file was modifiedllvm/test/tools/obj2yaml/no-symbol-reloc.test
The file was modifiedllvm/test/tools/llvm-readobj/all.test
The file was modifiedllvm/test/tools/obj2yaml/relocation-unsupported-machine.yaml