1# REQUIRES: x86 2# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o 3# RUN: %lld -lSystem %t.o -o %t 4# RUN: llvm-objdump --macho --syms --exports-trie %t | FileCheck %s 5 6# CHECK-LABEL: SYMBOL TABLE: 7# CHECK-DAG: 000000000000dead g *ABS* _foo 8# CHECK-DAG: 000000000000beef g *ABS* _weakfoo 9 10# CHECK-LABEL: Exports trie: 11# CHECK-DAG: 0x0000DEAD _foo [absolute] 12# CHECK-DAG: 0x0000BEEF _weakfoo [absolute] 13 14.globl _foo, _weakfoo, _main 15.weak_definition _weakfoo 16_foo = 0xdead 17_weakfoo = 0xbeef 18 19.text 20_main: 21 ret 22 23## TODO: once we support emitting local symbols in the symtab, test local 24## absolute symbols too 25