aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/weak-undef-lazy.s
blob: 0a4188fca27117778572d5d705d1feb096c0d572 (plain)
1
2
3
4
5
6
7
8
9
10
11
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/weak-undef-lazy.s -o %t2.o
# RUN: rm -f %t2.a
# RUN: llvm-ar rc %t2.a %t2.o
# RUN: ld.lld %t.o %t2.a -o /dev/null --export-dynamic

        .global _start
_start:
        .weak foobar
        .quad foobar