Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
lld/test/ELF/ppc64-local-exec-tls.s
// REQUIRES: ppc | // REQUIRES: ppc | ||||
// RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %s -o %t.o | // RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %s -o %t.o | ||||
// RUN: ld.lld %t.o -o %t | // RUN: ld.lld %t.o -o %t | ||||
// RUN: llvm-readelf -r %t.o | FileCheck --check-prefix=InputRelocs %s | // RUN: llvm-readelf -r %t.o | FileCheck --check-prefix=InputRelocs %s | ||||
// RUN: llvm-objdump -d %t | FileCheck --check-prefix=Dis %s | // RUN: llvm-objdump -d %t | FileCheck --check-prefix=Dis %s | ||||
// RUN: not ld.lld -shared %t.o -o /dev/null 2>&1 | FileCheck %s --check-prefix=ERR | |||||
/// Reject local-exec TLS relocations for -shared. | |||||
// ERR: error: relocation R_PPC64_TPREL16_HA against a cannot be used with -shared | |||||
// ERR: error: relocation R_PPC64_TPREL16_LO against a cannot be used with -shared | |||||
// ERR: error: relocation R_PPC64_TPREL16 against b cannot be used with -shared | |||||
// ERR: error: relocation R_PPC64_TPREL16_HI against b cannot be used with -shared | |||||
// ERR: error: relocation R_PPC64_TPREL16_DS against b cannot be used with -shared | |||||
// ERR: error: relocation R_PPC64_TPREL16_LO_DS against b cannot be used with -shared | |||||
// ERR: error: relocation R_PPC64_TPREL16_HIGHESTA against b cannot be used with -shared | |||||
// ERR: error: relocation R_PPC64_TPREL16_HIGHERA against b cannot be used with -shared | |||||
MaskRay: Note this test is not well organized. All the relocation types have been checked so I'll not… | |||||
.text | .text | ||||
.abiversion 2 | .abiversion 2 | ||||
.globl test_local_exec # -- Begin function test_local_exec | .globl test_local_exec # -- Begin function test_local_exec | ||||
.p2align 4 | .p2align 4 | ||||
.type test_local_exec,@function | .type test_local_exec,@function | ||||
test_local_exec: # @test_local_exec | test_local_exec: # @test_local_exec | ||||
.Lfunc_begin0: | .Lfunc_begin0: | ||||
# %bb.0: # %entry | # %bb.0: # %entry | ||||
▲ Show 20 Lines • Show All 149 Lines • Show Last 20 Lines |
Note this test is not well organized. All the relocation types have been checked so I'll not add --implicit-check-not=error: