mirror of
https://github.com/dynup/kpatch
synced 2025-01-16 01:50:48 +00:00
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:
parent
a91c7eb250
commit
3ffe135512
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user