You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
402 B
17 lines
402 B
7 months ago
|
# REQUIRES: x86
|
||
|
# RUN: llvm-mc -filetype=obj -triple=x86_64 /dev/null -o %t1.o
|
||
|
# RUN: ld.lld %t1.o -shared -o %t1.so
|
||
|
# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
|
||
|
# RUN: ld.lld %t.o %t1.so -o %t -pie
|
||
|
# RUN: llvm-readobj --dyn-relocations %t | FileCheck %s
|
||
|
|
||
|
# CHECK: Dynamic Relocations {
|
||
|
# CHECK-NEXT: R_X86_64_JUMP_SLOT w 0x0
|
||
|
# CHECK-NEXT: }
|
||
|
|
||
|
.globl _start
|
||
|
_start:
|
||
|
|
||
|
.weak w
|
||
|
call w@PLT
|