llvm.org GIT mirror llvm / 876a1ad
Test RuntimeDyld doesn't crash with R_X86_64_NONE (r293388). Largely based on LLD test for dtrace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293451 91177308-0d34-0410-b5e6-96231b3b80d8 Will Dietz 3 years ago
1 changed file(s) with 30 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 # RUN: yaml2obj %s -o %t.o
1 # RUN: llvm-rtdyld -triple=x86_64-pc-linux %t.o -printline
2
3 # Verify rtdyld doesn't abort in presence of R_X86_64_NONE
4
5 !ELF
6 FileHeader:
7 Class: ELFCLASS64
8 Data: ELFDATA2LSB
9 OSABI: ELFOSABI_FREEBSD
10 Type: ET_REL
11 Machine: EM_X86_64
12 Sections:
13 - Name: .text
14 Type: SHT_PROGBITS
15 Flags: [ SHF_ALLOC ]
16 - Name: .rela.text
17 Type: SHT_RELA
18 Link: .symtab
19 Info: .text
20 Relocations:
21 - Offset: 0x0000000000000000
22 Symbol: ''
23 Type: R_X86_64_NONE
24 Symbols:
25 Global:
26 - Name: _main
27 Section: .text
28 Value: 0
29 Size: 4