summaryrefslogtreecommitdiff
path: root/test/MC/ELF/fde-reloc.s
blob: c7e237ecda63962e73225907ad53a0f3c873b58b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// This just tests that a relocation of the specified type shows up as the first
// relocation in the relocation section for .eh_frame when produced by the
// assembler.

// RUN: llvm-mc -filetype=obj %s -o - -triple x86_64-pc-linux | \
// RUN: llvm-objdump -r - | FileCheck --check-prefix=X86-64 %s

// RUN: llvm-mc -filetype=obj %s -o - -triple i686-pc-linux | \
// RUN: llvm-objdump -r - | FileCheck --check-prefix=I686 %s

// RUN: llvm-mc -filetype=obj %s -o - -triple mips-unknown-unknown | \
// RUN: llvm-objdump -r - | FileCheck --check-prefix=MIPS32 %s

// RUN: llvm-mc -filetype=obj %s -o - -triple mips64-unknown-unknown | \
// RUN: llvm-objdump -r - | FileCheck --check-prefix=MIPS64 %s

// PR15448

func:
	.cfi_startproc
	.cfi_endproc

// X86-64: RELOCATION RECORDS FOR [.eh_frame]:
// X86-64-NEXT: R_X86_64_PC32

// I686: RELOCATION RECORDS FOR [.eh_frame]:
// I686-NEXT: R_386_PC32

// MIPS32: RELOCATION RECORDS FOR [.eh_frame]:
// MIPS32-NEXT: R_MIPS_32

// MIPS64: RELOCATION RECORDS FOR [.eh_frame]:
// MIPS64-NEXT: R_MIPS_64