1 ; REQUIRES: ld_emu_elf32ppc
3 ; RUN: llvm-as %s -o %t.o
4 ; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext -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
11 target datalayout = "E-m:e-i64:64-n32:64"
12 target triple = "powerpc64-unknown-linux-gnu"
14 ; REL: Type: Relocatable
15 ; REL-NEXT: Machine: EM_PPC
17 ; DSO: Type: SharedObject
18 ; DSO-NEXT: Machine: EM_PPC