From 168a472611f2e89e2acebf2b44569a00a34e966d Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 18 Oct 2012 04:18:18 +0000 Subject: * target-reloc.h (class Default_comdat_behavior): New, package up.. (get_comdat_behaviour): ..this. (relocate_section): Add Relocate_comdat_behavior template arg, adjust code to suit. * arm.cc (Target_arm::relocate_section): Adjust to suit. (Target_arm::scan_reloc_section): Likewise. * i386.cc (Target_i386::relocate_section): Likewise. * sparc.cc (Target_sparc::relocate_section): Likewise. * tilegx.cc (Target_tilegx::relocate_section): Likewise. * x86_64.cc (Target_x86_64::relocate_section): Likewise. * powerpc.cc (class Relocate_comdat_behavior): New. (Target_powerpc::relocate_section): Don't zap opd relocs. Supply gold::relocate_section with new template arg. --- gold/sparc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gold/sparc.cc') diff --git a/gold/sparc.cc b/gold/sparc.cc index 4ec3037c4ab..456ee462b81 100644 --- a/gold/sparc.cc +++ b/gold/sparc.cc @@ -4138,7 +4138,7 @@ Target_sparc::relocate_section( gold_assert(sh_type == elfcpp::SHT_RELA); gold::relocate_section( + Sparc_relocate, gold::Default_comdat_behavior>( relinfo, this, prelocs, -- cgit v1.2.1