This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH COMMITTED: Add large section support to gold


Ian Lance Taylor <iant@google.com> writes:

> I committed this patch to add support for object files with large
> numbers of sections to gold.  The general approach is to couple a
> boolean field, is_ordinary, with every section index.  When
> is_ordinary is true, a section index between SHN_LORESERVE and
> SHN_HIRESERVE is simply an index into the section table, not a special
> code.

While testing on another machine I realized that the test case was a
torture test for gcc.  With gcc 4.2.1 it ran out of virtual memory
while optimizing (this is better in 4.3).  Since that is not the goal,
I changed the test case to only test one in every thousand variables.

Ian


2008-04-19  Ian Lance Taylor  <iant@google.com>

	* testsuite/Makefile.am (many_sections_check.h): Only check one in
	every thousand variables.
	* testsuite/Makefile.in: Rebuild.


Index: testsuite/Makefile.am
===================================================================
RCS file: /cvs/src/src/gold/testsuite/Makefile.am,v
retrieving revision 1.65
diff -u -r1.65 Makefile.am
--- testsuite/Makefile.am	19 Apr 2008 18:30:58 -0000	1.65
+++ testsuite/Makefile.am	19 Apr 2008 19:14:45 -0000
@@ -564,7 +564,7 @@
 
 BUILT_SOURCES += many_sections_check.h
 many_sections_check.h:
-	(for i in `seq 1 70000`; do \
+	(for i in `seq 1 1000 70000`; do \
 	   echo "assert(var_$$i == $$i);"; \
 	 done) > $@.tmp
 	mv -f $@.tmp $@

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]