brintos

brintos / llvm-project-archived public Read only

0
0
Text · 786 B · 6304d6b Raw
19 lines · plain
1Optional linker-synthetic symbols are only created if they are undefined2in the final output.3This test is for a regression where an explicit --export of an lazy archive4symbol caused an undefined reference to an optional symbol to occur *after*5the optional symbols were created.6 7RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/start.s -o %t.o8RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/optional-symbol.s -o %t.a1.o9RUN: rm -f %t.a10RUN: llvm-ar rcs %t.a %t.a1.o11RUN: wasm-ld --export=get_optional %t.o %t.a -o %t.wasm12RUN: obj2yaml %t.wasm | FileCheck %s13 14CHECK:      FunctionNames:15CHECK-NEXT:   - Index:           016CHECK-NEXT:     Name:            _start17CHECK-NEXT:   - Index:           118CHECK-NEXT:     Name:            get_optional19