1 ; REQUIRES: ld_emu_elf32ppc 2 3 ; RUN: llvm-as %s -o %t.o 4 ; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so -m elf32ppc \ 5 ; RUN: -plugin-opt=mtriple=powerpc-linux-gnu \ 6 ; RUN: -plugin-opt=obj-path=%t3.o \ 7 ; RUN: -shared %t.o -o %t2 8 ; RUN: llvm-readobj --file-headers %t2 | FileCheck --check-prefix=DSO %s 9 ; RUN: llvm-readobj --file-headers %t3.o | FileCheck --check-prefix=REL %s 10 11 ; REL: Type: Relocatable 12 ; REL-NEXT: Machine: EM_PPC 13 14 ; DSO: Type: SharedObject 15 ; DSO-NEXT: Machine: EM_PPC 16