From dde42fc2f8451a92d200b386de37b27203ee2e11 Mon Sep 17 00:00:00 2001 From: matt Date: Thu, 6 Mar 2014 07:47:39 +0000 Subject: powerpc64 changes --- libexec/ld.elf_so/arch/powerpc/Makefile.inc | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'libexec') 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 + -- cgit