From e4aa183ac9342636ccb9637f1a38e240c9c2f199 Mon Sep 17 00:00:00 2001 From: Art Yerkes Date: Mon, 15 Jan 2007 09:43:12 +0000 Subject: [PATCH] Remove some spam and add options to make ntoskrnl a bit smaller and easier to process. svn path=/branches/powerpc/; revision=25462 --- reactos/ReactOS-ppc.rbuild | 4 ++++ reactos/lib/rtl/image.c | 6 ------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/reactos/ReactOS-ppc.rbuild b/reactos/ReactOS-ppc.rbuild index d6f73a4483b..25ee4ef343e 100644 --- a/reactos/ReactOS-ppc.rbuild +++ b/reactos/ReactOS-ppc.rbuild @@ -29,6 +29,10 @@ -fshort-wchar -fsigned-char -map + -mfull-toc + -meabi + -O2 + -Wno-strict-aliasing diff --git a/reactos/lib/rtl/image.c b/reactos/lib/rtl/image.c index 5439e4f328c..c4e5e64896b 100644 --- a/reactos/lib/rtl/image.c +++ b/reactos/lib/rtl/image.c @@ -176,11 +176,6 @@ LdrProcessRelocationBlockLongLong( Type = *TypeOffset >> 12; ShortPtr = (PUSHORT)(RVA(Address, Offset)); - DbgPrint("Correcting (%04x) %08x at %08x\n", - Type, - *((PULONG)RVA(Address,Offset)), - ShortPtr); - /* * Don't relocate within the relocation section itself. * GCC/LD generates sometimes relocation records for the relocation section. @@ -213,7 +208,6 @@ LdrProcessRelocationBlockLongLong( case IMAGE_REL_BASED_HIGHADJ: Addend = (((ULONG)*ShortPtr) << 16) + (ULONG)Delta; - if(Addend & 0x8000) Addend += 0x8000; *ShortPtr = Addend >> 16; break;