aboutsummaryrefslogtreecommitdiff
path: root/gold/output.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-08-21 20:37:32 +0000
committerIan Lance Taylor <iant@google.com>2007-08-21 20:37:32 +0000
commit41f542e70b89b9ea2875c438b0c9a60ac46092dd (patch)
treee731637699fca298f82185865790dd38321e4f69 /gold/output.h
parentfcb7aa2f6b17eb5211fe4d361eab8d985c40065e (diff)
downloadgdb-41f542e70b89b9ea2875c438b0c9a60ac46092dd.zip
gdb-41f542e70b89b9ea2875c438b0c9a60ac46092dd.tar.gz
gdb-41f542e70b89b9ea2875c438b0c9a60ac46092dd.tar.bz2
Add support for -rpath.
Diffstat (limited to 'gold/output.h')
-rw-r--r--gold/output.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/output.h b/gold/output.h
index 7ed53ff..3147080 100644
--- a/gold/output.h
+++ b/gold/output.h
@@ -1040,6 +1040,10 @@ class Output_data_dynamic : public Output_section_data
add_string(elfcpp::DT tag, const char* str)
{ this->add_entry(Dynamic_entry(tag, this->pool_->add(str, NULL))); }
+ void
+ add_string(elfcpp::DT tag, const std::string& str)
+ { this->add_string(tag, str.c_str()); }
+
// Set the final data size.
void
do_set_address(uint64_t, off_t);