llvm-project/llvm/test/ObjectYAML/wasm
Heejin Ahn feef720bb8 [WebAssembly] Check if the section order is correct
Summary:
This patch checks if the section order is correct when reading a wasm
object file in `WasmObjectFile` and converting YAML to wasm object in
yaml2wasm. (It is not possible to check when reading YAML because it is
handled exclusively by the YAML reader.)

This checks the ordering of all known sections (core sections + known
custom sections). This also adds section ID DataCount section that will
be scheduled to be added in near future.

Reviewers: sbc100

Subscribers: dschuff, mgorny, jgravelle-google, sunfish, llvm-commits

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

llvm-svn: 349221
2018-12-15 00:58:12 +00:00
..
code_section.yaml [WebAssembly] Add version to object file metadata 2018-04-26 18:15:32 +00:00
custom_section.yaml [WebAssembly] libObject: Don't include the name the size of custom sections 2018-04-12 20:31:12 +00:00
data_section.yaml [WebAssembly] Add version to object file metadata 2018-04-26 18:15:32 +00:00
dylink_section.yaml [WebAssembly] Update dylink section parsing 2018-12-12 23:40:58 +00:00
elem_section.yaml [WebAssembly] Use bitfield types in wasm YAML representation 2017-12-13 22:02:25 +00:00
event_section.yaml [WebAssembly] Add support for the event section 2018-11-14 02:46:21 +00:00
export_section.yaml [WebAssembly] Fix tests with invalid yaml (required CODE section missing) 2018-03-05 12:28:01 +00:00
function_section.yaml [WebAssembly] Fix tests with invalid yaml (required CODE section missing) 2018-03-05 12:28:01 +00:00
global_section.yaml [WebAssembly] Explicitly specify function/global index space in YAML 2018-01-09 21:38:53 +00:00
header.yaml
header_invalid_version.yaml
import_memory_shared.yaml [WebAssembly] Add shared memory support to limits field 2018-11-06 17:27:25 +00:00
import_section.yaml [WebAssembly] Explicitly specify function/global index space in YAML 2018-01-09 21:38:53 +00:00
invalid_export.yaml
invalid_global_weak.yaml [WebAssembly] Add version to object file metadata 2018-04-26 18:15:32 +00:00
invalid_section_order.yaml [WebAssembly] Check if the section order is correct 2018-12-15 00:58:12 +00:00
linking_section.yaml [WebAssembly] Add version to object file metadata 2018-04-26 18:15:32 +00:00
memory_section.yaml [WebAssembly] Use bitfield types in wasm YAML representation 2017-12-13 22:02:25 +00:00
name_section.yaml [WebAssembly] Explicitly specify function/global index space in YAML 2018-01-09 21:38:53 +00:00
start_section.yaml [WebAssembly] Fix tests with invalid yaml (required CODE section missing) 2018-03-05 12:28:01 +00:00
table_section.yaml [WebAssembly] Use bitfield types in wasm YAML representation 2017-12-13 22:02:25 +00:00
type_section.yaml [WebAssembly] Explicitly specify function/global index space in YAML 2018-01-09 21:38:53 +00:00
weak_symbols.yaml [WebAssembly] Add version to object file metadata 2018-04-26 18:15:32 +00:00