aboutsummaryrefslogtreecommitdiff
path: root/gold/output.cc
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2014-03-10 13:34:53 -0700
committerCary Coutant <ccoutant@google.com>2014-03-10 13:34:53 -0700
commit918fc1f8d23c634227c871b67ccb4ed32d0df83c (patch)
treea3904ecadd4c4da6a0b94509be387d622fbda540 /gold/output.cc
parent98ff9231545f9ba7221ad64ec1ff17cf52cafc07 (diff)
downloadgdb-918fc1f8d23c634227c871b67ccb4ed32d0df83c.zip
gdb-918fc1f8d23c634227c871b67ccb4ed32d0df83c.tar.gz
gdb-918fc1f8d23c634227c871b67ccb4ed32d0df83c.tar.bz2
Allow target to add custom dynamic table entries.
2014-03-10 Sasa Stankovic <Sasa.Stankovic@imgtec.com> gold/ * output.cc (Output_data_dynamic::Dynamic_entry::write): Get the value of DYNAMIC_CUSTOM dynamic entry. * output.h (Output_data_dynamic::add_custom): New function. (Dynamic_entry::Dynamic_entry): New constructor for DYNAMIC_CUSTOM dynamic entry. (enum Dynamic_entry::Classification): Add DYNAMIC_CUSTOM. * target.h (Target::dynamic_tag_custom_value): New function. (Target::do_dynamic_tag_custom_value): New function.
Diffstat (limited to 'gold/output.cc')
-rw-r--r--gold/output.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/output.cc b/gold/output.cc
index 29cca5d..c078fbb 100644
--- a/gold/output.cc
+++ b/gold/output.cc
@@ -1796,6 +1796,10 @@ Output_data_dynamic::Dynamic_entry::write(
val = pool->get_offset(this->u_.str);
break;
+ case DYNAMIC_CUSTOM:
+ val = parameters->target().dynamic_tag_custom_value(this->tag_);
+ break;
+
default:
val = this->u_.od->address() + this->offset_;
break;