diff options
author | ktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-14 18:50:23 +0000 |
---|---|---|
committer | ktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-14 18:50:23 +0000 |
commit | 4430968a5df3a78806d73d91ba7fa65944e76780 (patch) | |
tree | aae415808c7f916a8c626fe95c5f59c8e8b4bc7d /libiberty | |
parent | b3bea0f2c5c7bf1eb40ef0861e58ad4827a0ae3f (diff) | |
download | gcc-4430968a5df3a78806d73d91ba7fa65944e76780.tar.gz |
2010-11-14 Kai Tietz <kai.tietz@onevision.com>
* simple-object-coff.c (simple_object_coff_read_strtab): Fix reading
offset.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166735 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 5 | ||||
-rw-r--r-- | libiberty/simple-object-coff.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 8cd4a285684..4bd5b209bf3 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +2010-11-14 Kai Tietz <kai.tietz@onevision.com> + + * simple-object-coff.c (simple_object_coff_read_strtab): Fix reading + offset. + 2010-11-12 Ian Lance Taylor <iant@google.com> PR other/46332 diff --git a/libiberty/simple-object-coff.c b/libiberty/simple-object-coff.c index 9ba1dd4bac0..ff8fee46b74 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; |