From bd8d853f779692d3d4f8dfb65cf173f7e080f498 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Ko=C5=9Bcielnicki?= Date: Sat, 6 Feb 2016 01:52:00 +0100 Subject: gold: Add view and view_size parameters to is_call_to_non_split. This is needed by s390 split-stack support, to distinguish call and load-address relocations. gold/ChangeLog: * i386.cc (Target_i386::is_call_to_non_split): Add view and view_size parameters. * reloc.cc (Sized_relobj_file::split_stack_adjust_reltype): Pass view and view_size to is_call_to_non_split. * target.cc (Target::is_call_to_non_split): Add view and view_size parameters. * target.h (class Target): Likewise. --- gold/reloc.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gold/reloc.cc') diff --git a/gold/reloc.cc b/gold/reloc.cc index b1a50e6807..ca54f153a3 100644 --- a/gold/reloc.cc +++ b/gold/reloc.cc @@ -1251,7 +1251,8 @@ Sized_relobj_file::split_stack_adjust_reltype( && gsym->source() == Symbol::FROM_OBJECT && !gsym->object()->uses_split_stack()) { - if (parameters->target().is_call_to_non_split(gsym, pr)) + if (parameters->target().is_call_to_non_split(gsym, pr, view, + view_size)) { Reltype reloc(pr); section_offset_type offset = -- cgit v1.2.3