HomePhabricator

Reapply: Allow yaml2obj to order implicit sections for ELF

Description

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

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

Details

Committed
kastiglioneNov 7 2017, 4:58 PM
Reviewer
jakehehrlich
Differential Revision
D39749: Allow yaml2obj to order implicit sections for ELF
Parents
rL317645: AMDGPU: Set correct sched model on v_mad_u64_u32
Branches
Unknown
Tags
Unknown