OSDN Git Service

* output.cc (Output_reloc<SHT_REL>::local_section_offset): Add
authorian <ian>
Mon, 7 Apr 2008 22:46:16 +0000 (22:46 +0000)
committerian <ian>
Mon, 7 Apr 2008 22:46:16 +0000 (22:46 +0000)
commite024ec6d39e5c8a01ab708f0b1e0676a8af5a0bb
treed8ed8f191dcfc160d17d593ddf6807e416061f31
parent1e989a8f109ed87301620bba8fff837b756780fa
* 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