diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2006-09-14 23:37:35 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2006-09-14 23:37:35 +0000 |
commit | 748fc5e9b442d7330373191ad556ce708cf14cb0 (patch) | |
tree | 4c855420eb8ab964e16f2b96722abab6e2a7abd8 /binutils/objcopy.c | |
parent | 30288845d67c64d07905c1e4ca9de4768d3b2dd8 (diff) | |
download | gdb-748fc5e9b442d7330373191ad556ce708cf14cb0.zip gdb-748fc5e9b442d7330373191ad556ce708cf14cb0.tar.gz gdb-748fc5e9b442d7330373191ad556ce708cf14cb0.tar.bz2 |
binutils/
2006-09-14 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/3182
* objcopy.c (group_signature): Return proper group signature.
binutils/testsuite/
2006-09-14 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/3182
* binutils-all/objcopy.exp: Run strip-1 and strip-2 for ELF
targets.
* binutils-all/strip-1.d: New file.
* binutils-all/strip-2.d: Likewise.
* lib/utils-lib.exp (run_dump_test): Support strip.
Diffstat (limited to 'binutils/objcopy.c')
-rw-r--r-- | binutils/objcopy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/objcopy.c b/binutils/objcopy.c index e916fce..9bfb68d 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -804,7 +804,7 @@ group_signature (asection *group) if (symhdr->sh_type == SHT_SYMTAB && ghdr->sh_info < symhdr->sh_size / bed->s->sizeof_sym) - return isympp[ghdr->sh_info]; + return isympp[ghdr->sh_info - 1]; } return NULL; } |