- Support FULL_MAP command line option.
authorCasper Hornstrup <chorns@users.sourceforge.net>
Sat, 30 Oct 2004 11:19:45 +0000 (11:19 +0000)
committerCasper Hornstrup <chorns@users.sourceforge.net>
Sat, 30 Oct 2004 11:19:45 +0000 (11:19 +0000)
- Allow DEBUG to be set on command line.

svn path=/trunk/; revision=11472

freeldr/freeldr/CHANGELOG
freeldr/freeldr/Makefile
freeldr/freeldr/include/version.h

index aefef6d..a84da6d 100644 (file)
@@ -1,3 +1,8 @@
+Changes in v1.8.25 (10/30/2004) (chorns)
+
+- Support FULL_MAP command line option.
+- Allow DEBUG to be set on command line.
+
 Changes in v1.8.24 (09/20/2004) (hbirr)
 
 - Implemented the driver loading by the sequence of tag entries 
index c6aac39..7947b71 100644 (file)
 # CHANGE THESE FOR YOUR OUTPUT
 #
 TARGET         =       i386
+ifeq ($(DEBUG),)
 # Debugging information on (bigger binary)
 #DEBUG         =       yes
 # Debugging information off (smaller binary)
 DEBUG          =       no
+endif
 
 OBJDIR         =       obj
 OUTPUT_DIR     =       $(OBJDIR)/$(TARGET)
@@ -41,6 +43,8 @@ CP            = $(subst /,$(SEP),$(TOOLSDIR))$(SEP)rcopy
 MKDIR          = $(subst /,$(SEP),$(TOOLSDIR))$(SEP)rmkdir
 RMDIR          = $(subst /,$(SEP),$(TOOLSDIR))$(SEP)rrmdir
 OBJCOPY                = objcopy
+NM             = nm
+OBJDUMP                = objdump
 DEPTOOL                = $(subst /,$(SEP),$(TOOLSDIR))$(SEP)deptool
 HOSTTOOL       = $(subst /,$(SEP),$(TOOLSDIR))$(SEP)hosttype
 TOOLS          = $(DEPTOOL) $(HOSTTOOL)
@@ -347,10 +351,12 @@ all : freeldr.sys setupldr.sys
 
 freeldr.sys : $(ALL_OBJS)
        @echo ===================================================== LINKING $@
-#      @$(LD) -N -Ttext=0x8000 --oformat=binary -s -o freeldr.sys $(F_OBJS)
-       @$(LD) $(LFLAGS) -Map freeldr.map -o freeldr.exe $(F_OBJS)
-#      @$(CC) -Wl,-Ttext=0x8000,-N,-Map,freeldr.map -o freeldr.exe $(F_OBJS)
-       @$(NM) --numeric-sort freeldr.exe > freeldr.sym
+       @$(LD) $(LFLAGS) -o freeldr.exe $(F_OBJS)
+ifeq ($(FULL_MAP),yes)
+       @$(OBJDUMP) -d -S freeldr.exe > freeldr.map
+else
+       @$(NM) --numeric-sort freeldr.exe > freeldr.map
+endif
        @$(OBJCOPY) -O binary freeldr.exe freeldr.sys
 
 #############################################
@@ -358,7 +364,11 @@ freeldr.sys : $(ALL_OBJS)
 setupldr.sys : $(ALL_OBJS)
        @echo ===================================================== LINKING $@
        @$(LD) $(LFLAGS) -Map setupldr.map -o setupldr.exe $(S_OBJS)
-       @$(NM) --numeric-sort setupldr.exe > setupldr.sym
+ifeq ($(FULL_MAP),yes)
+       @$(OBJDUMP) -d -S setupldr.exe > setupldr.map
+else
+       @$(NM) --numeric-sort setupldr.exe > setupldr.map
+endif
        @$(OBJCOPY) -O binary setupldr.exe setupldr.sys
 
 #############################################
index b19a5e9..5c826f4 100644 (file)
@@ -22,7 +22,7 @@
 
 
 /* just some stuff */
-#define VERSION                        "FreeLoader v1.8.24"
+#define VERSION                        "FreeLoader v1.8.25"
 #define COPYRIGHT              "Copyright (C) 1998-2003 Brian Palmer <brianp@sginet.com>"
 #define AUTHOR_EMAIL   "<brianp@sginet.com>"
 #define BY_AUTHOR              "by Brian Palmer"
@@ -36,7 +36,7 @@
 //
 #define FREELOADER_MAJOR_VERSION       1
 #define FREELOADER_MINOR_VERSION       8
-#define FREELOADER_PATCH_VERSION       24
+#define FREELOADER_PATCH_VERSION       25
 
 
 #ifndef ASM