create-diff-object: simplify is_gcc6_localentry_bundled_sym()

The STT_FUNC and SHN_UNDEF checks aren't needed because they're already
implied by the localentry check.

Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
This commit is contained in:
Josh Poimboeuf 2017-11-08 12:15:39 -06:00
parent 1eac193bfc
commit e598d9628f

View File

@ -137,16 +137,8 @@ static int is_bundleable(struct symbol *sym)
*/
static int is_gcc6_localentry_bundled_sym(struct symbol *sym)
{
if (sym->type != STT_FUNC || sym->sym.st_shndx == SHN_UNDEF)
return 0;
if (sym->sym.st_value != 0x8)
return 0;
if (!PPC64_LOCAL_ENTRY_OFFSET(sym->sym.st_other))
return 0;
return 1;
return (PPC64_LOCAL_ENTRY_OFFSET(sym->sym.st_other) &&
sym->sym.st_value == 8);
}
#else
static int is_gcc6_localentry_bundled_sym(struct symbol *sym)