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.
# CHECK-NEXT: 2 FUNCTION 00000002 0000000000000000
# CHECK-NEXT: 3 CODE 00000019 0000000000000000 TEXT
# CHECK-NEXT: 4 DATA 0000001c 0000000000000000 DATA
-# CHECK-NEXT: 5 reloc.CODE 00000017 0000000000000000
-# CHECK-NEXT: 6 linking 00000055 0000000000000000
+# CHECK-NEXT: 5 linking 00000055 0000000000000000
+# CHECK-NEXT: 6 reloc.CODE 00000017 0000000000000000
# RUN: llvm-objdump -p %p/Inputs/trivial.obj.wasm | FileCheck %s -check-prefix CHECK-HEADER
WASM-NEXT: }
WASM-NEXT: Section {
WASM-NEXT: Type: CUSTOM (0x0)
-WASM-NEXT: Size: 23
+WASM-NEXT: Size: 65
WASM-NEXT: Offset: 191
-WASM-NEXT: Name: reloc.CODE
+WASM-NEXT: Name: linking
WASM-NEXT: }
WASM-NEXT: Section {
WASM-NEXT: Type: CUSTOM (0x0)
-WASM-NEXT: Size: 65
-WASM-NEXT: Offset: 220
-WASM-NEXT: Name: linking
+WASM-NEXT: Size: 23
+WASM-NEXT: Offset: 262
+WASM-NEXT: Name: reloc.CODE
WASM-NEXT: }
WASM-NEXT: ]