From e086adbdb433ea655c8bf0bdcd210baa5a0a63f6 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 6 Aug 2013 16:40:09 +0000 Subject: go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use compute_reloc_for_constant. * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use compute_reloc_for_constant. From-SVN: r201535 --- gcc/go/go-gcc.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gcc/go/go-gcc.cc') diff --git a/gcc/go/go-gcc.cc b/gcc/go/go-gcc.cc index 50dbb31..1ecfaff 100644 --- a/gcc/go/go-gcc.cc +++ b/gcc/go/go-gcc.cc @@ -1525,7 +1525,9 @@ Gcc_backend::immutable_struct_set_init(Bvariable* var, const std::string&, // These variables are often unneeded in the final program, so put // them in their own section so that linker GC can discard them. - resolve_unique_section(decl, 1, 1); + resolve_unique_section(decl, + compute_reloc_for_constant (init_tree), + 1); rest_of_decl_compilation(decl, 1, 0); } -- cgit v1.1