aboutsummaryrefslogtreecommitdiff
path: root/gold/reloc.cc
diff options
context:
space:
mode:
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 d618ea4..3018dc3 100644
--- a/gold/reloc.cc
+++ b/gold/reloc.cc
@@ -890,7 +890,9 @@ Sized_relobj<size, big_endian>::relocate_sections(
|| this->relocs_must_follow_section_writes());
relinfo.reloc_shndx = i;
+ relinfo.reloc_shdr = p;
relinfo.data_shndx = index;
+ relinfo.data_shdr = pshdrs + index * This::shdr_size;
unsigned char* view = (*pviews)[index].view;
Address address = (*pviews)[index].address;
section_size_type view_size = (*pviews)[index].view_size;