aboutsummaryrefslogtreecommitdiff
path: root/gold/reloc.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2006-12-01 16:51:25 +0000
committerIan Lance Taylor <iant@google.com>2006-12-01 16:51:25 +0000
commit16649710df23ad9038e0057035882a92e783f7e6 (patch)
tree7d4db6bb5578f6c90193108bc525a39f09ab379d /gold/reloc.cc
parent8a82f7e3921015b4cbadf29379d8af9d9f6af891 (diff)
downloadgdb-16649710df23ad9038e0057035882a92e783f7e6.zip
gdb-16649710df23ad9038e0057035882a92e783f7e6.tar.gz
gdb-16649710df23ad9038e0057035882a92e783f7e6.tar.bz2
Can now dynamically link hello, world.
Diffstat (limited to 'gold/reloc.cc')
-rw-r--r--gold/reloc.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gold/reloc.cc b/gold/reloc.cc
index 915656c..5b4db46 100644
--- a/gold/reloc.cc
+++ b/gold/reloc.cc
@@ -497,6 +497,7 @@ void
Copy_relocs<size, big_endian>::Copy_reloc_entry::emit(
Output_data_reloc<elfcpp::SHT_REL, true, size, big_endian>* reloc_data)
{
+ this->sym_->set_needs_dynsym_entry();
reloc_data->add_global(this->sym_, this->reloc_type_, this->relobj_,
this->shndx_, this->address_);
}
@@ -508,6 +509,7 @@ void
Copy_relocs<size, big_endian>::Copy_reloc_entry::emit(
Output_data_reloc<elfcpp::SHT_RELA, true, size, big_endian>* reloc_data)
{
+ this->sym_->set_needs_dynsym_entry();
reloc_data->add_global(this->sym_, this->reloc_type_, this->relobj_,
this->shndx_, this->address_, this->addend_);
}