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.
This commit is contained in:
H.J. Lu
2006-09-14 23:37:35 +00:00
parent 30288845d6
commit 748fc5e9b4
7 changed files with 56 additions and 5 deletions

View File

@@ -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;
}