Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Unified Diff: gold/output.h

Issue 10252012: [MIPS] Initial checkin for MIPS changes for GOLD. (Closed)
Patch Set: Updated MIPS code w/ SH_RELA. Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gold/mips.cc ('k') | gold/output.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gold/output.h
===================================================================
--- a/gold/output.h
+++ b/gold/output.h
@@ -2424,6 +2424,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 +2493,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 +2521,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.
};
« no previous file with comments | « gold/mips.cc ('k') | gold/output.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698