[PATCH] D43940: [WebAssembly] Reorder reloc sections to come after symtab and validate section order

Nicholas Wilson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 1 07:01:41 PST 2018


ncw created this revision.
ncw added reviewers: sunfish, sbc100.
Herald added subscribers: llvm-commits, aheejin, jgravelle-google, dschuff, jfb.

This is required in order to enable relocs to be validated as they are read in (https://reviews.llvm.org/D43684).

Also update tests which contain pre-existing invalid YAML Wasm files (some tests contain illegal FUNCTION sections, or don't have a CODE section where it's required).


Repository:
  rL LLVM

https://reviews.llvm.org/D43940

Files:
  include/llvm/Object/Wasm.h
  lib/MC/WasmObjectWriter.cpp
  lib/Object/WasmObjectFile.cpp
  test/Object/Inputs/trivial-object-test.wasm
  test/ObjectYAML/wasm/export_section.yaml
  test/ObjectYAML/wasm/function_section.yaml
  test/ObjectYAML/wasm/start_section.yaml
  test/tools/llvm-objdump/Inputs/trivial.obj.wasm
  test/tools/llvm-objdump/wasm.txt
  test/tools/llvm-readobj/Inputs/trivial.obj.wasm
  test/tools/llvm-readobj/sections.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43940.136514.patch
Type: text/x-patch
Size: 12122 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180301/de699bc6/attachment.bin>


More information about the llvm-commits mailing list