aboutsummaryrefslogtreecommitdiff
path: root/gold/i386.cc
diff options
context:
space:
mode:
authorMarcin Koƛcielnicki <koriakin@0x04.net>2016-02-06 01:52:00 +0100
committerMarcin Koƛcielnicki <koriakin@0x04.net>2016-02-06 01:52:00 +0100
commitbd8d853f779692d3d4f8dfb65cf173f7e080f498 (patch)
tree2b7e6d2aa27455655e4413672b2136071ae8700c /gold/i386.cc
parent148ec36086d9f59825f9c11be450cc8f5f250ed2 (diff)
downloadgdb-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/i386.cc')
-rw-r--r--gold/i386.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/gold/i386.cc b/gold/i386.cc
index 7946cf7..8bcd44e 100644
--- a/gold/i386.cc
+++ b/gold/i386.cc
@@ -500,7 +500,8 @@ class Target_i386 : public Sized_target<32, false>
// Return whether SYM is call to a non-split function.
bool
- do_is_call_to_non_split(const Symbol* sym, const unsigned char*) const;
+ do_is_call_to_non_split(const Symbol* sym, const unsigned char*,
+ const unsigned char*, section_size_type) const;
// Adjust -fsplit-stack code which calls non-split-stack code.
void
@@ -3916,7 +3917,9 @@ Target_i386::do_ehframe_datarel_base() const
bool
Target_i386::do_is_call_to_non_split(const Symbol* sym,
- const unsigned char*) const
+ const unsigned char*,
+ const unsigned char*,
+ section_size_type) const
{
return (sym->type() == elfcpp::STT_FUNC
&& !is_prefix_of("__i686.get_pc_thunk.", sym->name()));