From 16649710df23ad9038e0057035882a92e783f7e6 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 1 Dec 2006 16:51:25 +0000 Subject: Can now dynamically link hello, world. --- gold/reloc.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gold/reloc.cc') 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::Copy_reloc_entry::emit( Output_data_reloc* 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::Copy_reloc_entry::emit( Output_data_reloc* 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_); } -- cgit v1.1