Chromium Code Reviews| Index: gold/output.h |
| =================================================================== |
| --- a/gold/output.h |
| +++ b/gold/output.h |
| @@ -1776,6 +1776,10 @@ |
| // Add an absolute relocation. |
| void |
| + add_absolute_null(unsigned int type, Output_data* od, Address address) |
|
robertm
2012/04/27 19:46:15
in the spirit of keeping the deltas small - can th
Aleksandar Simeonov
2012/05/08 15:21:42
Since R_MIPS_NONE entry with address 0 has to be f
|
| + { this->add(od, Output_reloc_type(type, NULL, address)); } |
| + |
| + void |
| add_absolute(unsigned int type, Output_data* od, Address address) |
| { this->add(od, Output_reloc_type(type, od, address)); } |
| @@ -2424,6 +2428,11 @@ |
| add_string(elfcpp::DT tag, const std::string& str) |
| { this->add_string(tag, str.c_str()); } |
| + // Add a new dynamic entry with target specific value. |
| + void |
| + add_target_specific(elfcpp::DT tag) |
| + { this->add_entry(Dynamic_entry(tag)); } |
| + |
| protected: |
| // Adjust the output section to set the entry size. |
| void |
| @@ -2488,6 +2497,11 @@ |
| : tag_(tag), offset_(DYNAMIC_STRING) |
| { this->u_.str = str; } |
| + // Create an entry with a target specific value. |
| + Dynamic_entry(elfcpp::DT tag) |
| + : tag_(tag), offset_(DYNAMIC_TARGET) |
| + { }; |
| + |
| // Return the tag of this entry. |
| elfcpp::DT |
| tag() const |
| @@ -2511,7 +2525,9 @@ |
| // Symbol adress. |
| DYNAMIC_SYMBOL = -3U, |
| // String. |
| - DYNAMIC_STRING = -4U |
| + DYNAMIC_STRING = -4U, |
| + // Target specific value. |
| + DYNAMIC_TARGET = -5U |
| // Any other value indicates a section address plus OFFSET. |
| }; |