brintos

brintos / llvm-project-archived public Read only

0
0
Text · 623 B · 5c106e5 Raw
24 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o3# RUN: %lld -lSystem %t.o -o %t4# RUN: llvm-objdump --macho --syms --exports-trie %t | FileCheck %s5 6# CHECK-LABEL: SYMBOL TABLE:7# CHECK-DAG:   000000000000dead g       *ABS* _foo8# CHECK-DAG:   000000000000beef g       *ABS* _weakfoo9# CHECK-DAG:   000000000000cafe l       *ABS* _localfoo10 11# CHECK-LABEL: Exports trie:12# CHECK-DAG:   0x0000DEAD  _foo [absolute]13# CHECK-DAG:   0x0000BEEF  _weakfoo [absolute]14 15.globl _foo, _weakfoo, _main16.weak_definition _weakfoo17_foo = 0xdead18_weakfoo = 0xbeef19_localfoo = 0xcafe20 21.text22_main:23  ret24