blob: e84d93c7f88bf7533eb1bfc521eb643e2d3e4c7a [file] [log] [blame]
Rafael Espindola0c6a4f12015-11-11 19:54:14 +00001// REQUIRES: x86
2// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/shared.s -o %t.o
Rafael Espindola9c8904f2015-11-18 06:11:01 +00003// RUN: ld.lld %t.o -o %t.so -shared
Rafael Espindola0c6a4f12015-11-11 19:54:14 +00004// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t2.o
Rafael Espindola9c8904f2015-11-18 06:11:01 +00005// RUN: ld.lld %t2.o %t.so -o %t
Rafael Espindola0c6a4f12015-11-11 19:54:14 +00006// RUN: llvm-readobj -r %t | FileCheck %s
7
8 .globl _start
9_start:
10 .cfi_startproc
11 .cfi_personality 3, bar
12 .cfi_endproc
13
14// CHECK: Section ({{.*}}) .rela.plt {
15// CHECK-NEXT: R_X86_64_JUMP_SLOT bar 0x0
16// CHECK-NEXT: }