Patch to accept gcc objects submitted by ggn.
authorShamus Hammons <jlhamm@acm.org>
Thu, 11 Dec 2014 14:32:52 +0000 (08:32 -0600)
committerShamus Hammons <jlhamm@acm.org>
Thu, 11 Dec 2014 14:32:52 +0000 (08:32 -0600)
rln.c
rln.h

diff --git a/rln.c b/rln.c
index 2fa5be420c93d4369b77c89ae9f561f0b83b62ee..9f1a01e5ea72c5910f7d8721a96379f8b605b9fb 100644 (file)
--- a/rln.c
+++ b/rln.c
@@ -2315,8 +2315,8 @@ int flush_handles(void)
                        lseek(handle[i], 0L, 0);        // Reset to start of input file
 //                     test = getlong(magic); printf("Magic Number is 0x%08X\n", test);
 
-                       // Look for RMAC/MAC object files
-                       if (getlong(magic) == 0x00000107)
+                       // Look for RMAC/MAC/GCC ($20107) object files
+                       if ((getlong(magic) == 0x00000107) || (getlong(magic) == 0x00020107))
                        {
                                // Process input object file
                                if (doobject(name[i], handle[i], 0L))
diff --git a/rln.h b/rln.h
index 2a469cdd4c1b9390b5577da6c41046e7e187a5b9..a962789638c3ee517c8f1d39914c9395c42d685d 100644 (file)
--- a/rln.h
+++ b/rln.h
@@ -52,7 +52,7 @@
 
 #define MAJOR   1                      // Major version number
 #define MINOR   2                      // Minor version number
-#define PATCH   2                      // Patch release number
+#define PATCH   3                      // Patch release number
 
 #ifdef WIN32
 #define PLATFORM     "Win32"                    // Release platform - Windows