Mercurial > hg > CbC > CbC_llvm
view lld/test/ELF/ppc64-abs64-dyn.s @ 192:d7606dcf6fce
Added tag llvm10 for changeset 0572611fdcc8
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 14 Dec 2020 18:01:34 +0900 |
parents | 1d019706d866 |
children | 5f17cb93ff66 |
line wrap: on
line source
# REQUIRES: ppc # RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %s -o %t.o # RUN: ld.lld -shared %t.o -o %t.so # RUN: llvm-readobj -r %t.so | FileCheck %s # RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t.o # RUN: ld.lld -shared %t.o -o %t.so # RUN: llvm-readobj -r %t.so | FileCheck %s ## Test that we create R_PPC64_RELATIVE for R_PPC64_ADDR64 to non-preemptable ## symbols and R_PPC64_TOC in writable sections. ## FIXME the addend for offset 0x20000 should be TOC base+0x8000+1, not 0x80001. # CHECK: .rela.dyn { # CHECK-NEXT: 0x303B8 R_PPC64_RELATIVE - 0x8001 # CHECK-NEXT: 0x303C0 R_PPC64_RELATIVE - 0x303B9 # CHECK-NEXT: 0x303C8 R_PPC64_ADDR64 external 0x1 # CHECK-NEXT: 0x303D0 R_PPC64_ADDR64 global 0x1 # CHECK-NEXT: } .data .globl global global: local: .quad .TOC.@tocbase + 1 .quad local + 1 .quad external + 1 .quad global + 1