From 82bb573a567ac147a333b86e36208e2397d5f5df Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 15 Oct 2009 00:33:18 +0000 Subject: * object.h (class Relocate_info): Add reloc_shdr and data_shdr fields. * object.cc (Sized_relobj::relocate_sections): Set reloc_shdr and data_shdr fields of relinfo. * i386.cc (class Target_i386::Relocate): Remove ldo_addrs_ field. (Target_i386::Relocate::relocate_tls): Don't call fix_up_ldo. For R_386_TLS_LDO_32, adjust based on section flags. (Target_i386::Relocate::fix_up_ldo): Remove. --- 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 d618ea4..3018dc3 100644 --- a/gold/reloc.cc +++ b/gold/reloc.cc @@ -890,7 +890,9 @@ Sized_relobj::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; -- cgit v1.1