1# REQUIRES: x86 2# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o 3# RUN: ld.lld %t.o -o %t --export-dynamic 4# RUN: llvm-readelf -r %t | FileCheck %s 5 6## gABI leaves the behavior of weak undefined references implementation defined. 7## We choose to resolve it statically and not create a dynamic relocation for 8## implementation simplicity. This also matches ld.bfd and gold. 9 10# CHECK: no relocations 11 12 .global _start 13_start: 14 .data 15 .weak foobar 16 .quad foobar 17