aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gold/symtab.h')
-rw-r--r--gold/symtab.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/gold/symtab.h b/gold/symtab.h
index 104429a5af1..a60cfb9ca19 100644
--- a/gold/symtab.h
+++ b/gold/symtab.h
@@ -428,22 +428,23 @@ class Symbol
// Return whether this symbol has an entry in the GOT section.
// For a TLS symbol, this GOT entry will hold its tp-relative offset.
bool
- has_got_offset(unsigned int got_type) const
- { return this->got_offsets_.get_offset(got_type) != -1U; }
+ has_got_offset(unsigned int got_type, uint64_t addend = 0) const
+ { return this->got_offsets_.get_offset(got_type, addend) != -1U; }
// Return the offset into the GOT section of this symbol.
unsigned int
- got_offset(unsigned int got_type) const
+ got_offset(unsigned int got_type, uint64_t addend = 0) const
{
- unsigned int got_offset = this->got_offsets_.get_offset(got_type);
+ unsigned int got_offset = this->got_offsets_.get_offset(got_type, addend);
gold_assert(got_offset != -1U);
return got_offset;
}
// Set the GOT offset of this symbol.
void
- set_got_offset(unsigned int got_type, unsigned int got_offset)
- { this->got_offsets_.set_offset(got_type, got_offset); }
+ set_got_offset(unsigned int got_type, unsigned int got_offset,
+ uint64_t addend = 0)
+ { this->got_offsets_.set_offset(got_type, got_offset, addend); }
// Return the GOT offset list.
const Got_offset_list*