From 7ddca096fbfe65b91325027cd7995ed3cb7af2c9 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 4 Mar 2009 06:46:27 +0000 Subject: PR 9918 * target-reloc.h (relocate_section): Pass output_section to relocate. * i386.cc (Target_i386::should_apply_static_reloc): Add output_section parameter. Change all callers. (Target_i386::Relocate::relocate): Add output_section parameter. * x86_64.cc (Target_x86_64::Relocate::relocate): Likewise. * sparc.cc (Target_sparc::Relocate::relocate): Likewise. * powerpc.cc (Target_powerpc::Relocate::relocate): Likewise. * testsuite/two_file_shared.sh: New script. * testsuite/Makefile.am (check_SCRIPTS): Add two_file_shared.sh. (check_DATA): Add two_file_shared.dbg. (two_file_shared.dbg): New target. * testsuite/Makefile.in: Rebuild. --- gold/sparc.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gold/sparc.cc') diff --git a/gold/sparc.cc b/gold/sparc.cc index 476aa3286d..794cab924d 100644 --- a/gold/sparc.cc +++ b/gold/sparc.cc @@ -232,7 +232,8 @@ class Target_sparc : public Sized_target // any warnings about this relocation. inline bool relocate(const Relocate_info*, Target_sparc*, - size_t relnum, const elfcpp::Rela&, + Output_section*, size_t relnum, + const elfcpp::Rela&, unsigned int r_type, const Sized_symbol*, const Symbol_value*, unsigned char*, @@ -2356,6 +2357,7 @@ inline bool Target_sparc::Relocate::relocate( const Relocate_info* relinfo, Target_sparc* target, + Output_section*, size_t relnum, const elfcpp::Rela& rela, unsigned int r_type, -- cgit v1.2.1