aboutsummaryrefslogtreecommitdiff
path: root/gold/object.h
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/object.h
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/object.h')
-rw-r--r--gold/object.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/object.h b/gold/object.h
index 66f5dbb..ff96682 100644
--- a/gold/object.h
+++ b/gold/object.h
@@ -2007,8 +2007,12 @@ struct Relocate_info
Sized_relobj<size, big_endian>* object;
// Section index of relocation section.
unsigned int reloc_shndx;
+ // Section header of relocation section.
+ const unsigned char* reloc_shdr;
// Section index of section being relocated.
unsigned int data_shndx;
+ // Section header of data section.
+ const unsigned char* data_shdr;
// Return a string showing the location of a relocation. This is
// only used for error messages.