Commit e086adbd by Ian Lance Taylor Committed by Ian Lance Taylor

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
parent 15682f24
2013-08-06 Ian Lance Taylor <iant@google.com>
* go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
compute_reloc_for_constant.
2013-08-02 Ian Lance Taylor <iant@google.com>
* go-gcc.cc (immutable_struct_set_init): Always call
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment