aboutsummaryrefslogtreecommitdiff
path: root/gold/reloc.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2009-10-15 00:33:18 +0000
committerIan Lance Taylor <ian@airs.com>2009-10-15 00:33:18 +0000
commit82bb573a567ac147a333b86e36208e2397d5f5df (patch)
treee2c38c03b45f7749e5614c152278bc670231b719 /gold/reloc.cc
parent7b6964b46ccee427823c18726e262f09284821d1 (diff)
downloadfsf-binutils-gdb-82bb573a567ac147a333b86e36208e2397d5f5df.zip
fsf-binutils-gdb-82bb573a567ac147a333b86e36208e2397d5f5df.tar.gz
fsf-binutils-gdb-82bb573a567ac147a333b86e36208e2397d5f5df.tar.bz2
* 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.
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;