diff options
author | Marcin KoĆcielnicki <koriakin@0x04.net> | 2016-02-06 01:52:00 +0100 |
---|---|---|
committer | Marcin KoĆcielnicki <koriakin@0x04.net> | 2016-02-06 01:52:00 +0100 |
commit | bd8d853f779692d3d4f8dfb65cf173f7e080f498 (patch) | |
tree | 2b7e6d2aa27455655e4413672b2136071ae8700c /gold/reloc.cc | |
parent | 148ec36086d9f59825f9c11be450cc8f5f250ed2 (diff) | |
download | gdb-bd8d853f779692d3d4f8dfb65cf173f7e080f498.zip gdb-bd8d853f779692d3d4f8dfb65cf173f7e080f498.tar.gz gdb-bd8d853f779692d3d4f8dfb65cf173f7e080f498.tar.bz2 |
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.
Diffstat (limited to 'gold/reloc.cc')
-rw-r--r-- | gold/reloc.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gold/reloc.cc b/gold/reloc.cc index b1a50e6..ca54f15 100644 --- a/gold/reloc.cc +++ b/gold/reloc.cc @@ -1251,7 +1251,8 @@ Sized_relobj_file<size, big_endian>::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 = |