Fixes for powerpc64

diff --git a/ash/Makefile b/ash/Makefile
index 0ac0015..7a1d3cd 100644
--- a/ash/Makefile
+++ b/ash/Makefile
@@ -71,8 +71,6 @@
 
 HOST_CFLAGS  = -g -O -I. -DSHELL
 
-LDFLAGS =
-
 CLEANFILES =\
 	builtins.c builtins.h init.c \
 	nodes.c nodes.h signames.c token.h \
diff --git a/klibc/arch/ppc64/MCONFIG b/klibc/arch/ppc64/MCONFIG
index 53e74d5..09881b8 100644
--- a/klibc/arch/ppc64/MCONFIG
+++ b/klibc/arch/ppc64/MCONFIG
@@ -7,10 +7,10 @@
 # accordingly.
 #
 
-CC      += -m64
-LD	+= -m elf64ppc
-OPTFLAGS = -Os -fomit-frame-pointer
-BITSIZE  = 64
+ARCHREQFLAGS = -m64 -mcall-aixdesc
+OPTFLAGS     = -Os -fomit-frame-pointer
+BITSIZE      = 64
+LDFLAGS      = -m elf64ppc
 
 # Extra linkflags when building the shared version of the library
 # This address needs to be reachable using normal inter-module
diff --git a/klibc/arch/ppc64/Makefile.inc b/klibc/arch/ppc64/Makefile.inc
index 928df1a..d1e128f 100644
--- a/klibc/arch/ppc64/Makefile.inc
+++ b/klibc/arch/ppc64/Makefile.inc
@@ -19,7 +19,7 @@
 	$(LD) $(LDFLAGS) -r -o $@ interp1.o klibc.got
 
 klibc.got: $(SOHASH)
-	$(OBJCOPY) -j.got $< $@
+	$(OBJCOPY) -j .got $< $@
 
 archclean:
 	rm -f klibc.got