Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/ld.elf_so/arch/powerpc powerpc64 changes



details:   https://anonhg.NetBSD.org/src/rev/c2006ee7e115
branches:  trunk
changeset: 327365:c2006ee7e115
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Mar 06 07:47:39 2014 +0000

description:
powerpc64 changes

diffstat:

 libexec/ld.elf_so/arch/powerpc/Makefile.inc |  15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diffs (25 lines):

diff -r ceacd8b29917 -r c2006ee7e115 libexec/ld.elf_so/arch/powerpc/Makefile.inc
--- a/libexec/ld.elf_so/arch/powerpc/Makefile.inc       Thu Mar 06 07:47:19 2014 +0000
+++ b/libexec/ld.elf_so/arch/powerpc/Makefile.inc       Thu Mar 06 07:47:39 2014 +0000
@@ -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,--script,${.CURDIR}/arch/powerpc/ld.so.script
+.endif
 
-LDFLAGS+=      -Wl,-e,_rtld_start
-LDFLAGS+=      -Wl,--script,${.CURDIR}/arch/powerpc/ld.so.script



Home | Main Index | Thread Index | Old Index