brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 4eb4634 Raw
64 lines · plain
1## Test that the copied object has the same yaml conversion as the original.2## The copied object is not bit-identical to the yaml2obj-generated3## one, as yaml2obj uses 5-byte LEBs for section sizes (unlike objcopy/clang).4# RUN: yaml2obj %s -o %t.o5# RUN: llvm-objcopy %t.o %t2.o6# RUN: obj2yaml %t.o > %t.yaml7# RUN: obj2yaml %t2.o > %t2.yaml8# RUN: diff %t.yaml %t2.yaml9 10--- !WASM11FileHeader:12  Version: 0x0000000113Sections:14  - Type: TYPE15    Signatures:16      - Index: 017        ParamTypes:18          - I3219        ReturnTypes:20          - F3221      - Index: 122        ParamTypes:23          - I3224          - I6425        ReturnTypes:     []26  - Type: FUNCTION27    FunctionTypes:28      - 029      - 130  - Type: CODE31    Relocations:32      - Type:   R_WASM_TABLE_INDEX_SLEB33        Index:  034        Offset: 0x0000000235      - Type:   R_WASM_FUNCTION_INDEX_LEB36        Index:  137        Offset: 0x000000238    Functions:39      - Index:  040        Locals:41         - Type:  I3242           Count: 343        Body: 010101010B44      - Index: 145        Locals:46         - Type: I3247           Count: 148        Body: 010101010B49  - Type: CUSTOM50    Name:    linking51    Version: 252    SymbolTable:53      - Index: 054        Kind:  FUNCTION55        Name:  func156        Flags: [  ]57        Function: 058      - Index: 159        Kind: FUNCTION60        Name: func261        Flags: [  ]62        Function: 163...64