aboutsummaryrefslogtreecommitdiff
path: root/gold/incremental.cc
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-01-28 00:23:31 +0000
committerH.J. Lu <hjl.tools@gmail.com>2012-01-28 00:23:31 +0000
commitc335b55d34437e607fca5ba7f0bea4a9696d2fe5 (patch)
tree67487170c1fe58adf24de6c724f5b541fd8f7009 /gold/incremental.cc
parent75138f6d32e34eb6268e295817589658d4cc3f80 (diff)
downloadgdb-c335b55d34437e607fca5ba7f0bea4a9696d2fe5.zip
gdb-c335b55d34437e607fca5ba7f0bea4a9696d2fe5.tar.gz
gdb-c335b55d34437e607fca5ba7f0bea4a9696d2fe5.tar.bz2
Correct incremental relocation offset
2012-01-27 H.J. Lu <hongjiu.lu@intel.com> * incremental.cc (write_info_blocks): Correct relocation offset.
Diffstat (limited to 'gold/incremental.cc')
-rw-r--r--gold/incremental.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gold/incremental.cc b/gold/incremental.cc
index 39bad37..2a26573 100644
--- a/gold/incremental.cc
+++ b/gold/incremental.cc
@@ -1632,7 +1632,8 @@ Output_section_incremental_inputs<size, big_endian>::write_info_blocks(
Swap32::writeval(pov + 4, shndx);
Swap32::writeval(pov + 8, chain);
Swap32::writeval(pov + 12, nrelocs);
- Swap32::writeval(pov + 16, first_reloc * 3 * sizeof_addr);
+ Swap32::writeval(pov + 16,
+ first_reloc * (8 + 2 * sizeof_addr));
pov += 20;
}