﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
189	emxomfar cannot build big libraries for Mozilla	Yuri Dario	bird	"Build of static libs for Mozilla fails with 'Source library too big'.
Looking at code, this patch

{{{
Index: omflibcl.c
===================================================================
--- omflibcl.c	(revision 3612)
+++ omflibcl.c	(working copy)
@@ -22,14 +22,14 @@
   /* Build a vector which maps page numbers to module table
      entries. */
 
-  reverse = malloc (65536 * sizeof (*reverse));
+  reverse = malloc (65536*2 * sizeof (*reverse));
   if (reverse == NULL)
     {
       errno = ENOMEM;
       return omflib_set_error (error);
     }
 
-  for (i = 0; i < 65536; ++i)
+  for (i = 0; i < 65536*2; ++i)
     reverse[i] = -1;
   for (i = 0; i < src->mod_count; ++i)
     reverse[src->mod_tab[i].page] = i;
@@ -46,7 +46,7 @@
           free (reverse);
           return -1;
         }
-      if (long_page > 65535)
+      if (long_page > (65536*2-1))
         {
           strcpy (error, ""Source library too big"");
           free (reverse);

}}}

fixed Peter build problems.
I only doubled the number of entries, I don't know if this is the best fix.
"	defect	closed	normal	libc-0.6.4	emx	0.6.2	normal	invalid		
