* output.cc (Output_reloc<SHT_REL>::local_section_offset): Add

addend parameter.  Change caller.  Handle merge sections.
	(Output_reloc<SHT_REL>::symbol_value): Change parameter type from
	Address to Addend.  Don't add in the result of
	local_section_offset, pass down the addend and use the returned
	value.
	* output.h (class Output_reloc<SHT_REL>): Add Addend typedef.
	Update declarations of local_section_offset and symbol_value.
	* testsuite/two_file_test_1.cc (t18): New function.
	* testsuite/two_file_test_2.cc (f18): New function.
	* testsuite/two_file_test_main.cc (main): Call t18.
	* testsuite/two_file_test.h (t18, f18): Declare.
This commit is contained in:
Ian Lance Taylor
2008-04-07 22:46:17 +00:00
parent 6835af537e
commit 624f881062
7 changed files with 76 additions and 9 deletions

View File

@@ -52,5 +52,6 @@ main()
assert(t16());
assert(t16a());
assert(t17());
assert(t18());
return 0;
}