diff options
author | DJ Delorie <dj@redhat.com> | 2010-11-14 21:42:55 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2010-11-14 21:42:55 +0000 |
commit | 28fadfc482c2f8c4f7611c45d7d473768c8acb6f (patch) | |
tree | 1e2c8ec03cb284ab57e452b4a3d77f0e68d7089d /libiberty/simple-object-coff.c | |
parent | 73c964d623bc742a965522ef9591294588d50452 (diff) | |
download | gdb-28fadfc482c2f8c4f7611c45d7d473768c8acb6f.zip gdb-28fadfc482c2f8c4f7611c45d7d473768c8acb6f.tar.gz gdb-28fadfc482c2f8c4f7611c45d7d473768c8acb6f.tar.bz2 |
merge from gcc
Diffstat (limited to 'libiberty/simple-object-coff.c')
-rw-r--r-- | libiberty/simple-object-coff.c | 3 |
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; |