diff options
author | H.J. Lu <hjl@lucon.org> | 2006-09-14 23:37:35 +0000 |
---|---|---|
committer | H.J. Lu <hjl@lucon.org> | 2006-09-14 23:37:35 +0000 |
commit | 028529d9da206577fc179e209331876f8a809f1a (patch) | |
tree | 7c59c8ff2da818df76f4bea829ee870c48358538 /binutils/objcopy.c | |
parent | 547e01bc3a419bba5d43f1a3a674ade38973e0ad (diff) | |
download | binutils-redhat-028529d9da206577fc179e209331876f8a809f1a.tar.gz |
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 e916fce83a..9bfb68dbba 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; } |