[WebAssembly] Reorder reloc sections to come between symtab and name
authorNicholas Wilson <nicholas@nicholaswilson.me.uk>
Mon, 5 Mar 2018 12:59:03 +0000 (12:59 +0000)
committerNicholas Wilson <nicholas@nicholaswilson.me.uk>
Mon, 5 Mar 2018 12:59:03 +0000 (12:59 +0000)
commitc22bfb6b4b37042897f7253f90e84c645b3e8562
tree64586b7913d061af6659d1361fde88904ee23f48
parent94d3b16101599f52e1233357e719eff1dc0159f3
[WebAssembly] Reorder reloc sections to come between symtab and name

This is required in order to enable relocs to be validated
as they are read in.

Also update tests with new section ordering.

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

llvm-svn: 326694
llvm/lib/MC/WasmObjectWriter.cpp
llvm/test/Object/Inputs/trivial-object-test.wasm
llvm/test/tools/llvm-objdump/Inputs/trivial.obj.wasm
llvm/test/tools/llvm-objdump/wasm.txt
llvm/test/tools/llvm-readobj/Inputs/trivial.obj.wasm
llvm/test/tools/llvm-readobj/sections.test