brintos

brintos / llvm-project-archived public Read only

0
0
Text · 513 B · 81e48fd Raw
18 lines · plain
1# REQUIRES: ppc2# RUN: llvm-mc -filetype=obj -triple=powerpc64le %s -o %t.o3# RUN: ld.lld %t.o %t.o -o /dev/null4# RUN: ld.lld -r --fatal-warnings %t.o %t.o -o /dev/null5 6## clang/gcc PPC64 may emit a .rela.toc which references a switch table in a7## discarded .rodata/.text section. The .toc and the .rela.toc are incorrectly8## not placed in the comdat.9## Don't error "relocation refers to a discarded section".10 11.section .text.foo,"axG",@progbits,foo,comdat12.globl foo13foo:14.L0:15 16.section .toc,"aw"17.quad .L018