File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change 11## Check that lld uses the size of surrounding symbols for capability relocations
22## against STT_NONE targets with size==0.
3+ # REQUIRES: riscv
34# RUN: %riscv64_cheri_purecap_llvm-mc -filetype=obj %s -o %t.o
45# RUN: llvm-readobj --symbols --relocations --cap-relocs --expand-relocs %t.o | FileCheck %s --check-prefix=OBJ-RELOCS
56# RUN: ld.lld -pie %t.o -o %t.exe -e fn1 --verbose 2>&1 | FileCheck %s --check-prefix=LLD-OUTPUT "--implicit-check-not=warning:"
Original file line number Diff line number Diff line change 1+ ; REQUIRES: riscv
12; RUN: split-file %s %t
23; RUN: %cheri_purecap_llc --relocation-model=pic < %t/input.ll -filetype=obj -o %t/mips.o
34; RUN: %cheri_purecap_llc --relocation-model=pic < %t/weak_override.ll -filetype=obj -o %t/mips-override.o
Original file line number Diff line number Diff line change 11## This used to crash ld.lld for CHERI MIPS with "internal linker error: wrote incorrect addend value 0x1043000000000 instead of 0x10430"
22## The crash no longer occurs after b2559f2f5ca950e917253b156bfd08ede5577cd5
3+ # REQUIRES: mips
34# RUN: llvm-mc -filetype=obj -triple=mips64-unknown-freebsd --position-independent %s -o %t.o
45# RUN: ld.lld --eh-frame-hdr --shared -z notext -o %t.so %t.o
56# RUN: llvm-mc -filetype=obj -triple=mips64-unknown-freebsd %s -o %t-nopic.o
You can’t perform that action at this time.
0 commit comments