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

Unified Diff: gold/output.h

Issue 10252012: [MIPS] Initial checkin for MIPS changes for GOLD. (Closed)
Patch Set: Created 8 years, 8 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
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.
};

Powered by Google App Engine
This is Rietveld 408576698