summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authormatt <matt@NetBSD.org>2014-03-06 07:47:39 +0000
committermatt <matt@NetBSD.org>2014-03-06 07:47:39 +0000
commitdde42fc2f8451a92d200b386de37b27203ee2e11 (patch)
tree1ad4d63e3ba867669cd9ab7ad6d41f17e3ba90f0 /libexec
parent92a971668dde0d0ebb7c17a2411e54952351d204 (diff)
powerpc64 changes
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ld.elf_so/arch/powerpc/Makefile.inc15
1 files changed, 10 insertions, 5 deletions
diff --git a/libexec/ld.elf_so/arch/powerpc/Makefile.inc b/libexec/ld.elf_so/arch/powerpc/Makefile.inc
index 9773b74d671..a859f74e328 100644
--- a/libexec/ld.elf_so/arch/powerpc/Makefile.inc
+++ b/libexec/ld.elf_so/arch/powerpc/Makefile.inc
@@ -1,11 +1,16 @@
-# $NetBSD: Makefile.inc,v 1.12 2011/10/26 15:56:58 chs Exp $
+# $NetBSD: Makefile.inc,v 1.13 2014/03/06 07:47:39 matt Exp $
-SRCS+= rtld_start.S ppc_reloc.c
+SRCS+= ppc_reloc.c
+LDFLAGS+= -Wl,-e,_rtld_start
# XXX Should not be in CPPFLAGS!
+.if ${LDELFSO_MACHINE_ARCH} == "powerpc64"
+SRCS+= rtld_start64.S
+CPPFLAGS+= -DELFSIZE=64
+.else
+SRCS+= rtld_start.S
CPPFLAGS+= -fpic
-
CPPFLAGS+= -DELFSIZE=32
-
-LDFLAGS+= -Wl,-e,_rtld_start
LDFLAGS+= -Wl,--script,${.CURDIR}/arch/powerpc/ld.so.script
+.endif
+