mirror of
https://github.com/dynup/kpatch
synced 2025-02-01 01:31:30 +00:00
create-diff-object.c: Extend is_bundleable()
GCC puts the constant variable requiring relocation into .data.rel. or .data.rel.ro depending upon the bind type of the symbol. Extend is_bundledable() to check these .data sections too. Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
This commit is contained in:
parent
8eb1d23713
commit
5b690b28bf
@ -112,6 +112,16 @@ static int is_bundleable(struct symbol *sym)
|
||||
!strcmp(sym->sec->name + 6, sym->name))
|
||||
return 1;
|
||||
|
||||
if (sym->type == STT_OBJECT &&
|
||||
!strncmp(sym->sec->name, ".data.rel.", 10) &&
|
||||
!strcmp(sym->sec->name + 10, sym->name))
|
||||
return 1;
|
||||
|
||||
if (sym->type == STT_OBJECT &&
|
||||
!strncmp(sym->sec->name, ".data.rel.ro.", 13) &&
|
||||
!strcmp(sym->sec->name + 13, sym->name))
|
||||
return 1;
|
||||
|
||||
if (sym->type == STT_OBJECT &&
|
||||
!strncmp(sym->sec->name, ".rodata.",8) &&
|
||||
!strcmp(sym->sec->name + 8, sym->name))
|
||||
|
Loading…
Reference in New Issue
Block a user