Author: cfinck
Date: Sat May 9 02:57:46 2009
New Revision: 40842
URL: http://svn.reactos.org/svn/reactos?rev=40842&view=rev
Log:
- Bump version to 1.4.2 to keep consistent with RosBE-Windows
- Correct toolchain target in the Readme files
Modified:
trunk/tools/RosBE/RosBE-Unix/Base-i386/README
trunk/tools/RosBE/RosBE-Unix/Base-i386/README.odt
trunk/tools/RosBE/RosBE-Unix/Base-i386/RosBE-Builder.sh
Modified: trunk/tools/RosBE/RosBE-Unix/Base-i386/README
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Unix/Base-i386/R…
==============================================================================
--- trunk/tools/RosBE/RosBE-Unix/Base-i386/README [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Unix/Base-i386/README [iso-8859-1] Sat May 9 02:57:46 2009
@@ -1,5 +1,5 @@
ReactOS Build Environment
- Version 1.4.1 for Unix-based operating systems
+ Version 1.4.2 for Unix-based operating systems
Base package and i386 build tools
by Colin Finck (mail(a)colinfinck.de)
@@ -104,13 +104,13 @@
components:
* GNU Binutils v2.19.51-20090127 (snapshot)
- compiled for i386-pc-mingw32
+ compiled for mingw32
patched with:
- binutils-2.18.50.10-15-2007-snapshot-hpoussin.patch
(http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/Patches/binutils-2.18.…)
* GCC, The GNU Compiler Collection v4.1.3-20071015 (snapshot)
- compiled for i386-pc-mingw32
+ compiled for mingw32
patched with:
- GCC-v4.1-r129382-prerelease-w3seek.patch
(http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/Patches/GCC-v4.1-r1293…)
Modified: trunk/tools/RosBE/RosBE-Unix/Base-i386/README.odt
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Unix/Base-i386/R…
==============================================================================
Binary files - no diff available.
Modified: trunk/tools/RosBE/RosBE-Unix/Base-i386/RosBE-Builder.sh
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Unix/Base-i386/R…
==============================================================================
--- trunk/tools/RosBE/RosBE-Unix/Base-i386/RosBE-Builder.sh [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Unix/Base-i386/RosBE-Builder.sh [iso-8859-1] Sat May 9 02:57:46 2009
@@ -7,9 +7,9 @@
# Released under GNU GPL v2 or any later version.
# Constants
-ROSBE_VERSION="1.4.1"
+ROSBE_VERSION="1.4.2"
TARGET_ARCH="i386"
-KNOWN_ROSBE_VERSIONS="0.3.6 1.1 1.4 1.4.1"
+KNOWN_ROSBE_VERSIONS="0.3.6 1.1 1.4 1.4.2"
DEFAULT_INSTALL_DIR="/usr/local/RosBE"
NEEDED_TOOLS="bison flex gcc g++ grep makeinfo" # GNU Make has a special check
@@ -202,7 +202,7 @@
;;
"1.4")
- # Updated components from 1.4 to 1.4.1
+ # Updated components from 1.4 to 1.4.2
process_getincludes=true
esac
fi
Author: cfinck
Date: Sat May 9 02:48:20 2009
New Revision: 40841
URL: http://svn.reactos.org/svn/reactos?rev=40841&view=rev
Log:
- Finally get rid of the LIBRARY_PATH, HOST_CFLAGS, HOST_CPPFLAGS, TARGET_CFLAGS, TARGET_CPPFLAGS hacks in "rosbe-gcc-env.cmd"
- Update Changelog and Readme
The Mingw32 Runtime DLL isn't needed by any of our tools, so it has been removed. This also means, we're again consistent with RosBE-Unix on the Runtime version number (3.13).
Modified:
trunk/tools/RosBE/RosBE-Windows/Root/ChangeLog.txt
trunk/tools/RosBE/RosBE-Windows/Root/README.odt
trunk/tools/RosBE/RosBE-Windows/Root/rosbe-gcc-env.cmd
Modified: trunk/tools/RosBE/RosBE-Windows/Root/ChangeLog.txt
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/Cha…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Root/ChangeLog.txt [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Windows/Root/ChangeLog.txt [iso-8859-1] Sat May 9 02:48:20 2009
@@ -5,7 +5,8 @@
Required for kjk's rbuild work. (Colin Finck)
- Fixes for the Uninstall Routine to keep most settings, if wished, on a update. (Daniel Reimer)
- Remove some stupid setlocals. (Daniel Reimer)
-- New Built GCC which supports the recent variable changes (Colin Finck)
+- New binutils and GCC builds optimized for i686 and with proper relative include directories (Colin Finck)
+- Remove unneeded components such as the MingW32 Runtime DLL (Colin Finck)
- Make it possible to set different settings for any arch in RosBE. (Daniel Reimer, Timo Kreuzer)
Modified: trunk/tools/RosBE/RosBE-Windows/Root/README.odt
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/REA…
==============================================================================
Binary files - no diff available.
Modified: trunk/tools/RosBE/RosBE-Windows/Root/rosbe-gcc-env.cmd
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/ros…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Root/rosbe-gcc-env.cmd [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Windows/Root/rosbe-gcc-env.cmd [iso-8859-1] Sat May 9 02:48:20 2009
@@ -111,12 +111,4 @@
set ROSBE_HOST_CXXFLAGS=
set ROSBE_TARGET_CFLAGS=
set ROSBE_TARGET_CXXFLAGS=
-)
-
-set LIBRARY_PATH=%_ROSBE_HOST_MINGWPATH%\lib;%_ROSBE_HOST_MINGWPATH%\lib\gcc\mingw32\%_ROSBE_GCCVERSION%
-
-:: HAX !!!!
-set HOST_CFLAGS=%ROSBE_HOST_CFLAGS%
-set HOST_CPPFLAGS=%ROSBE_HOST_CXXFLAGS%
-set TARGET_CFLAGS=%ROSBE_TARGET_CFLAGS%
-set TARGET_CPPFLAGS=%ROSBE_TARGET_CXXFLAGS%
+)
Author: cfinck
Date: Sat May 9 02:06:49 2009
New Revision: 40840
URL: http://svn.reactos.org/svn/reactos?rev=40840&view=rev
Log:
The ReactOS Makefile only detects GCCs built for "mingw32" while MSYS autodetects "i686-pc-mingw32".
I could fix that in the Makefile, but then compatibility with older revisions would still be broken. Also this little detection inside the Makefile could prevent some people from attempting to use their own, incompatible GCC versions.
Therefore I've added --build, --host and --target values to the toolchain's configure scripts and set them all to "mingw32" to make sure that they aren't doing any cross-compiling attempts.
i686 optimizations for the built compiler were manually applied with -march=i686 in CFLAGS and CXXFLAGS. (which *doesn't* mean ROS itself will need an i686 onwards CPU from now on)
Modified:
trunk/tools/RosBE/RosBE-Windows/Compiling a working GNU toolchain under Windows.odt
trunk/tools/RosBE/RosBE-Windows/buildtoolchain.sh
Modified: trunk/tools/RosBE/RosBE-Windows/Compiling a working GNU toolchain under Windows.odt
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Compilin…
==============================================================================
Binary files - no diff available.
Modified: trunk/tools/RosBE/RosBE-Windows/buildtoolchain.sh
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/buildtoo…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/buildtoolchain.sh [iso-8859-1] (original)
+++ trunk/tools/RosBE/RosBE-Windows/buildtoolchain.sh [iso-8859-1] Sat May 9 02:06:49 2009
@@ -17,12 +17,24 @@
#
# Constants
#
+CFLAGS="-march=i686 -O2"
+CXXFLAGS="$CFLAGS"
INSTALLDIR="/c/buildtoolchain/mingw"
+LDFLAGS="-s"
MINGWDIR="/mingw"
NEEDED_TOOLS="bison flex gcc g++ grep make makeinfo"
-TARGET="i686-pc-mingw32"
+TARGET="mingw32"
TEMPDIR="/c/buildtoolchain"
WIN32_INSTALLDIR="c:/buildtoolchain/mingw"
+
+# Make sure we build an entirely native compiler, since MSYS might report subtle differences (i.e. "i686-pc-mingw32" instead of "mingw32")
+BUILD="$TARGET"
+HOST="$TARGET"
+
+# The following variables need to be accessed by Make and its subprocesses.
+export CFLAGS
+export CXXFLAGS
+export LDFLAGS
#
# Functions
@@ -178,11 +190,11 @@
echo -n "Configuring binutils... "
mkdir "binutils-build"
cd "binutils-build"
- ../binutils/configure --prefix="$INSTALLDIR" --disable-nls --disable-shared >& "$TEMPDIR/build.log"
+ ../binutils/configure --prefix="$INSTALLDIR" --build="$BUILD" --host="$HOST" --target="$TARGET" --disable-nls --disable-shared >& "$TEMPDIR/build.log"
check_run
echo -n "Building binutils... "
- make CFLAGS="-O2 -fno-exceptions" LDFLAGS="-s" >& "$TEMPDIR/build.log"
+ make >& "$TEMPDIR/build.log"
check_run
echo -n "Installing binutils... "
@@ -208,14 +220,14 @@
mkdir "gcc-build"
cd "gcc-build"
- ../gcc/configure --prefix="$WIN32_INSTALLDIR" --with-ld=/bin/ld \
+ ../gcc/configure --prefix="$WIN32_INSTALLDIR" --build="$BUILD" --host="$HOST" --target="$TARGET" --with-ld=/bin/ld \
--enable-languages=c,c++ --enable-checking=release \
--enable-threads=win32 --disable-win32-registry --disable-nls \
--disable-shared >& "$TEMPDIR/build.log"
check_run
echo -n "Building gcc... "
- make CFLAGS="-O2" CXXFLAGS="-O2" LDFLAGS="-s" >& "$TEMPDIR/build.log"
+ make >& "$TEMPDIR/build.log"
check_run
echo -n "Installing gcc... "
Author: mjmartin
Date: Fri May 8 18:12:12 2009
New Revision: 40838
URL: http://svn.reactos.org/svn/reactos?rev=40838&view=rev
Log:
- MmMapViewOfSection: Segment size must be a multiple of page size, so round ViewSize up to next page size.
OllyDbg now shows loaded dll's in memory and can step into dlls.
Modified:
trunk/reactos/ntoskrnl/mm/section.c
Modified: trunk/reactos/ntoskrnl/mm/section.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/section.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/section.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/section.c [iso-8859-1] Fri May 8 18:12:12 2009
@@ -4690,6 +4690,8 @@
(*ViewSize) = Section->MaximumSize.u.LowPart - ViewOffset;
}
+ *ViewSize = PAGE_ROUND_UP(*ViewSize);
+
MmLockSectionSegment(Section->Segment);
Status = MmMapViewOfSegment(AddressSpace,
Section,