llvm/test/tools/yaml2obj
Dave Lee 9a5be1f566 Reapply: Allow yaml2obj to order implicit sections for ELF
Summary:
This change allows yaml input to control the order of implicitly added sections
(`.symtab`, `.strtab`, `.shstrtab`). The order is controlled by adding a
placeholder section of the given name to the Sections field.

This change is to support changes in D39582, where it is desirable to control
the location of the `.dynsym` section.

This reapplied version fixes:
  1. use of a function call within an assert
  2. failing lld test which has an unnamed section
  3. incorrect section count when given an unnamed section

Additionally, one more test to cover the unnamed section failure.

Reviewers: compnerd, jakehehrlich

Reviewed By: jakehehrlich

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D39749

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317789 91177308-0d34-0410-b5e6-96231b3b80d8
2017-11-09 14:53:43 +00:00
..
invalid_output_file.test
invalid-symboless-relocation.yaml
lit.local.cfg
missing_document_tag.yaml
program-header-align.yaml
program-header-nobits.yaml
program-header.yaml
section-ordering.yaml
symbol-index-invalid.yaml
symbol-index.yaml
symboless-relocation.yaml
unnamed-section.yaml
unsupported_document_tag.yaml