1// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s 2 3// Test that weak symbols always produce relocations 4 5 .weak foo 6foo: 7bar: 8 call foo 9 10//CHECK: # Relocation 0 11//CHECK-NEXT: (('r_offset', 0x0000000000000001) 12//CHECK-NEXT: ('r_sym', 0x00000005) 13//CHECK-NEXT: ('r_type', 0x00000002) 14//CHECK-NEXT: ('r_addend', 0xfffffffffffffffc) 15//CHECK-NEXT: ), 16