aboutsummaryrefslogtreecommitdiff
path: root/libiberty/simple-object-coff.c
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2010-11-14 18:50:23 +0000
committerKai Tietz <ktietz@gcc.gnu.org>2010-11-14 19:50:23 +0100
commit28d1e73f5c07b1c594a3437597ac35bf08957389 (patch)
treeaae415808c7f916a8c626fe95c5f59c8e8b4bc7d /libiberty/simple-object-coff.c
parent6b6d5d092292a33a5463f18b8d55e9818e5f8c02 (diff)
downloadgcc-28d1e73f5c07b1c594a3437597ac35bf08957389.zip
gcc-28d1e73f5c07b1c594a3437597ac35bf08957389.tar.gz
gcc-28d1e73f5c07b1c594a3437597ac35bf08957389.tar.bz2
simple-object-coff.c (simple_object_coff_read_strtab): Fix reading offset.
2010-11-14 Kai Tietz <kai.tietz@onevision.com> * simple-object-coff.c (simple_object_coff_read_strtab): Fix reading offset. From-SVN: r166735
Diffstat (limited to 'libiberty/simple-object-coff.c')
-rw-r--r--libiberty/simple-object-coff.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libiberty/simple-object-coff.c b/libiberty/simple-object-coff.c
index 9ba1dd4..ff8fee4 100644
--- a/libiberty/simple-object-coff.c
+++ b/libiberty/simple-object-coff.c
@@ -308,7 +308,8 @@ simple_object_coff_read_strtab (simple_object_read *sobj, size_t *strtab_size,
size_t strsize;
char *strtab;
- strtab_offset = ocr->symptr + ocr->nsyms * sizeof (struct external_syment);
+ strtab_offset = sobj->offset + ocr->symptr
+ + ocr->nsyms * sizeof (struct external_syment);
if (!simple_object_internal_read (sobj->descriptor, strtab_offset,
strsizebuf, 4, errmsg, err))
return NULL;