This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: gold script handling of program headers
David Miller <davem@davemloft.net> writes:
> From: Ian Lance Taylor <iant@google.com>
> Date: Tue, 15 Apr 2008 15:51:29 -0700
>
>> David Miller <davem@davemloft.net> writes:
>>
>> > So the resulting offset is 0x403f50, and this is where the bogus
>> > non-zero this->offset() seen by Output_file_header::do_write() seems
>> > to come from.
>>
>>
>> Thanks for the bug report. I committed this patch, which should fix
>> this problem.
>
> The new script test fails on sparc64:
>
> Did not find expected segment in script_test_4.stdout:
> \.interp[ ]*PROGBITS[ ]*10000400
Whoops. Fixed like so.
Ian
2008-04-16 Ian Lance Taylor <iant@google.com>
* testsuite/script_test_4.sh: Permit leading zeroes.
Index: testsuite/script_test_4.sh
===================================================================
RCS file: /cvs/src/src/gold/testsuite/script_test_4.sh,v
retrieving revision 1.1
diff -u -u -r1.1 script_test_4.sh
--- testsuite/script_test_4.sh 15 Apr 2008 22:50:37 -0000 1.1
+++ testsuite/script_test_4.sh 16 Apr 2008 17:43:21 -0000
@@ -38,4 +38,4 @@
fi
}
-check script_test_4.stdout "\\.interp[ ]*PROGBITS[ ]*10000400"
+check script_test_4.stdout "\\.interp[ ]*PROGBITS[ ]*0*10000400"