diff options
author | Cary Coutant <ccoutant@google.com> | 2014-03-10 13:35:53 -0700 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2014-03-10 13:35:53 -0700 |
commit | 800d982336156359cad5f98ba26a249a94f13108 (patch) | |
tree | e7ff1c14daead3937a629a34ba91d2b53a047c53 /gold/symtab.cc | |
parent | 918fc1f8d23c634227c871b67ccb4ed32d0df83c (diff) | |
download | gdb-800d982336156359cad5f98ba26a249a94f13108.zip gdb-800d982336156359cad5f98ba26a249a94f13108.tar.gz gdb-800d982336156359cad5f98ba26a249a94f13108.tar.bz2 |
Allow target to adjust dynamic symbol value.
2014-03-10 Sasa Stankovic <Sasa.Stankovic@imgtec.com>
gold/
* symtab.cc (Symbol_table::sized_write_globals): Allow a target to
adjust dynamic symbol value.
* target.h (Target::adjust_dyn_symbol): New function.
(Target::do_adjust_dyn_symbol): New function.
Diffstat (limited to 'gold/symtab.cc')
-rw-r--r-- | gold/symtab.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gold/symtab.cc b/gold/symtab.cc index 87173b2..2a00d56 100644 --- a/gold/symtab.cc +++ b/gold/symtab.cc @@ -3012,6 +3012,8 @@ Symbol_table::sized_write_globals(const Stringpool* sympool, unsigned char* pd = dynamic_view + (dynsym_index * sym_size); this->sized_write_symbol<size, big_endian>(sym, dynsym_value, shndx, binding, dynpool, pd); + // Allow a target to adjust dynamic symbol value. + parameters->target().adjust_dyn_symbol(sym, pd); } } |