diff options
| author | Nicholas Wilson <nicholas@nicholaswilson.me.uk> | 2018-03-05 12:59:03 +0000 |
|---|---|---|
| committer | Nicholas Wilson <nicholas@nicholaswilson.me.uk> | 2018-03-05 12:59:03 +0000 |
| commit | c22bfb6b4b37042897f7253f90e84c645b3e8562 (patch) | |
| tree | 64586b7913d061af6659d1361fde88904ee23f48 /llvm/lib/MC/WasmObjectWriter.cpp | |
| parent | 94d3b16101599f52e1233357e719eff1dc0159f3 (diff) | |
| download | bcm5719-llvm-c22bfb6b4b37042897f7253f90e84c645b3e8562.tar.gz bcm5719-llvm-c22bfb6b4b37042897f7253f90e84c645b3e8562.zip | |
[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
Diffstat (limited to 'llvm/lib/MC/WasmObjectWriter.cpp')
| -rw-r--r-- | llvm/lib/MC/WasmObjectWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/WasmObjectWriter.cpp b/llvm/lib/MC/WasmObjectWriter.cpp index 3c86ca47e48..87ef0d927ee 100644 --- a/llvm/lib/MC/WasmObjectWriter.cpp +++ b/llvm/lib/MC/WasmObjectWriter.cpp @@ -1307,9 +1307,9 @@ void WasmObjectWriter::writeObject(MCAssembler &Asm, writeElemSection(TableElems); writeCodeSection(Asm, Layout, Functions); writeDataSection(); + writeLinkingMetaDataSection(SymbolInfos, InitFuncs, Comdats); writeCodeRelocSection(); writeDataRelocSection(); - writeLinkingMetaDataSection(SymbolInfos, InitFuncs, Comdats); // TODO: Translate the .comment section to the output. // TODO: Translate debug sections to the output. |

