create-diff-object: bundling for .text.unlikely symbols

With -ffunction-sections, some section names are given a prefix of
".text.unlikely." rather than just ".text.".
This commit is contained in:
Josh Poimboeuf 2014-06-04 10:38:06 -05:00
parent a91c7eb250
commit 3ffe135512

View File

@ -375,6 +375,11 @@ int is_bundleable(struct symbol *sym)
!strcmp(sym->sec->name + 6, sym->name))
return 1;
if (sym->type == STT_FUNC &&
!strncmp(sym->sec->name, ".text.unlikely.",15) &&
!strcmp(sym->sec->name + 15, sym->name))
return 1;
if (sym->type == STT_OBJECT &&
!strncmp(sym->sec->name, ".data.",6) &&
!strcmp(sym->sec->name + 6, sym->name))