* output.cc (Output_reloc<SHT_REL>::local_section_offset): Add
commit71fb9cdd2e7ef8ae65de9b16b62970356956243d
authorIan Lance Taylor <ian@airs.com>
Mon, 7 Apr 2008 22:46:17 +0000 (7 22:46 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 7 Apr 2008 22:46:17 +0000 (7 22:46 +0000)
tree4994c9abb0a73e9079c6b6494ed7f95ed2af3135
parent00b882421051c5a3167401885a06e8b942e9adb7
* 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.
gold/ChangeLog
gold/output.cc
gold/output.h
gold/testsuite/two_file_test.h
gold/testsuite/two_file_test_1.cc
gold/testsuite/two_file_test_2.cc
gold/testsuite/two_file_test_main.cc