diff options
Diffstat (limited to 'binutils-2.25/gold/arm.cc')
-rw-r--r-- | binutils-2.25/gold/arm.cc | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/binutils-2.25/gold/arm.cc b/binutils-2.25/gold/arm.cc index 94149d6..4879acb 100644 --- a/binutils-2.25/gold/arm.cc +++ b/binutils-2.25/gold/arm.cc @@ -4497,41 +4497,6 @@ Stub::do_fixed_endian_write(unsigned char* view, section_size_type view_size) gold_assert(static_cast<section_size_type>(pov - view) == view_size); } -// Reloc_stub::Key methods. - -// Dump a Key as a string for debugging. - -std::string -Reloc_stub::Key::name() const -{ - if (this->r_sym_ == invalid_index) - { - // Global symbol key name - // <stub-type>:<symbol name>:<addend>. - const std::string sym_name = this->u_.symbol->name(); - // We need to print two hex number and two colons. So just add 100 bytes - // to the symbol name size. - size_t len = sym_name.size() + 100; - char* buffer = new char[len]; - int c = snprintf(buffer, len, "%d:%s:%x", this->stub_type_, - sym_name.c_str(), this->addend_); - gold_assert(c > 0 && c < static_cast<int>(len)); - delete[] buffer; - return std::string(buffer); - } - else - { - // local symbol key name - // <stub-type>:<object>:<r_sym>:<addend>. - const size_t len = 200; - char buffer[len]; - int c = snprintf(buffer, len, "%d:%p:%u:%x", this->stub_type_, - this->u_.relobj, this->r_sym_, this->addend_); - gold_assert(c > 0 && c < static_cast<int>(len)); - return std::string(buffer); - } -} - // Reloc_stub methods. // Determine the type of stub needed, if any, for a relocation of R_TYPE at |