HomePhabricator

[yaml2obj] - Add a syntax to override e_phoff, e_phentsize and e_phnum fields.

Authored by grimar on Jul 9 2020, 12:55 AM.

Description

[yaml2obj] - Add a syntax to override e_phoff, e_phentsize and e_phnum fields.

This adds EPhOff, EPhEntSize and EPhNum keys.
Will be useful for creating broken objects for testing llvm-readelf.

Differential revision: https://reviews.llvm.org/D83482