gdb/testsuite: introduce gdb_step_until
[binutils-gdb.git] / gold / target.h
index 089d7b377c3b38132253286cf793ed7d6e457168..fb4981192734b74a3737726ddd0991f3e910cdbd 100644 (file)
@@ -1,6 +1,6 @@
 // target.h -- target support for gold   -*- C++ -*-
 
-// Copyright (C) 2006-2020 Free Software Foundation, Inc.
+// Copyright (C) 2006-2022 Free Software Foundation, Inc.
 // Written by Ian Lance Taylor <iant@google.com>.
 
 // This file is part of gold.
@@ -289,14 +289,19 @@ class Target
   int64_t
   tls_offset_for_local(const Relobj* object,
                       unsigned int symndx,
-                      unsigned int got_indx) const
-  { return do_tls_offset_for_local(object, symndx, got_indx); }
+                      Output_data_got_base* got,
+                      unsigned int got_indx,
+                      uint64_t addend) const
+  { return do_tls_offset_for_local(object, symndx, got, got_indx, addend); }
 
   // Return the offset to use for the GOT_INDX'th got entry which is
   // for global tls symbol GSYM.
   int64_t
-  tls_offset_for_global(Symbol* gsym, unsigned int got_indx) const
-  { return do_tls_offset_for_global(gsym, got_indx); }
+  tls_offset_for_global(Symbol* gsym,
+                       Output_data_got_base* got,
+                       unsigned int got_indx,
+                       uint64_t addend) const
+  { return do_tls_offset_for_global(gsym, got, got_indx, addend); }
 
   // For targets that use function descriptors, if LOC is the location
   // of a function, modify it to point at the function entry location.
@@ -648,11 +653,14 @@ class Target
   { gold_unreachable(); }
 
   virtual int64_t
-  do_tls_offset_for_local(const Relobj*, unsigned int, unsigned int) const
+  do_tls_offset_for_local(const Relobj*, unsigned int,
+                         Output_data_got_base*, unsigned int,
+                         uint64_t) const
   { gold_unreachable(); }
 
   virtual int64_t
-  do_tls_offset_for_global(Symbol*, unsigned int) const
+  do_tls_offset_for_global(Symbol*, Output_data_got_base*, unsigned int,
+                          uint64_t) const
   { gold_unreachable(); }
 
   virtual void