1 # Tests that lld can handle relocations of type R_X86_64_PC16
2 #RUN: yaml2obj -format=elf -docnum 1 %s -o %t1.o
3 #RUN: lld -flavor gnu -target x86_64 %t1.o --noinhibit-exec -o %t2.out -static
4 #RUN: llvm-objdump -s %t2.out | FileCheck %s
5 #CHECK: Contents of section .data:
17 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
18 AddressAlign: 0x0000000000000004
22 Flags: [ SHF_WRITE, SHF_ALLOC ]
23 AddressAlign: 0x0000000000000008
28 AddressAlign: 0x0000000000000008
31 - Offset: 0x0000000000000000
37 Flags: [ SHF_WRITE, SHF_ALLOC ]
38 AddressAlign: 0x0000000000000004
55 Size: 0x0000000000000008
59 Value: 0x0000000000000002
60 Size: 0x0000000000000002