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]

[gold patch trivial] Fix incremental_test_4 to not run out of patch space


I've committed the following patch as trivial to fix PR gold/12804,
where one of the incremental test cases was failing because the
incremental update ran out of patch space. The problem was that the
"_v1" version of the source file had variable "v2" in .bss, and the
updated version of the source file had the variable in .data. This
patch gives "v2" an initial value of 1 instead of 0, so it's in .data
in both versions.

-cary


2011-06-08  Cary Coutant  <ccoutant@google.com>

	PR gold/12804
	* testsuite/two_file_test_2_v1.cc: Change initialization of
	v2 to keep it in .data.


diff --git a/gold/testsuite/two_file_test_2_v1.cc
b/gold/testsuite/two_file_test_2_v1.cc
index b97a677..ea26c66 100644
--- a/gold/testsuite/two_file_test_2_v1.cc
+++ b/gold/testsuite/two_file_test_2_v1.cc
@@ -46,7 +46,7 @@ t1a()

 // 2  Code in file 1 refers to global data in file 2.

-int v2 = 0;
+int v2 = 1;

 // 3 Code in file 1 referes to common symbol in file 2.  This is
 // initialized at runtime to 789.


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