Heuristic: If the number of operands in the alias are more than the number of
[llvm/stm8.git] / test / MC / ELF / weak-relocation.s
blobef331d7e6da218f67eec393b62602eab017987d9
1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s
3 // Test that weak symbols always produce relocations
5 .weak foo
6 foo:
7 bar:
8 call foo
10 //CHECK: # Relocation 0x00000000
11 //CHECK-NEXT: (('r_offset', 0x00000001)
12 //CHECK-NEXT: ('r_sym', 0x00000005)
13 //CHECK-NEXT: ('r_type', 0x00000002)
14 //CHECK-NEXT: ('r_addend', 0xfffffffc)
15 //CHECK-NEXT: ),