brintos

brintos / llvm-project-archived public Read only

0
0
Text · 977 B · b245593 Raw
31 lines · plain
1## Check how we print relocations.2 3# RUN: llvm-readobj -r --expand-relocs %p/Inputs/trivial.obj.wasm \4# RUN:   | FileCheck %s --check-prefix WASM5 6# WASM:      Relocations [7# WASM-NEXT:   Section (4) CODE {8# WASM-NEXT:     Relocation {9# WASM-NEXT:       Type: R_WASM_MEMORY_ADDR_SLEB (4)10# WASM-NEXT:       Offset: 0x411# WASM-NEXT:       Symbol: .L.str12# WASM-NEXT:       Addend: 013# WASM-NEXT:     }14# WASM-NEXT:     Relocation {15# WASM-NEXT:       Type: R_WASM_FUNCTION_INDEX_LEB (0)16# WASM-NEXT:       Offset: 0xA17# WASM-NEXT:       Symbol: puts18# WASM-NEXT:     }19# WASM-NEXT:     Relocation {20# WASM-NEXT:       Type: R_WASM_FUNCTION_INDEX_LEB (0)21# WASM-NEXT:       Offset: 0x1122# WASM-NEXT:       Symbol: .LSomeOtherFunction_bitcast23# WASM-NEXT:     }24# WASM-NEXT:     Relocation {25# WASM-NEXT:       Type: R_WASM_FUNCTION_INDEX_LEB (0)26# WASM-NEXT:       Offset: 0x1E27# WASM-NEXT:       Symbol: SomeOtherFunction28# WASM-NEXT:     }29# WASM-NEXT:   }30# WASM-NEXT: ]31