mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 09:14:14 +08:00
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.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user