-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kpatch-elf: Fix rela->string calculation
On s390x, .L1^B19 -> .rodata.str (bug_table) .LC0 -> .rodata.str1.2 In these cases, return true and rela->string should point to rela->sym->sec->data->d_buf + value of the associated symbol. Previous result: offset 68, type 26, .LC0 + 2 (string = NETDEV_UP) offset 78, type 26, .LC17 + 2 (string = NETDEV_UP) offset 88, type 26, .LC2 + 2 (string = NETDEV_UP) After fix: offset 68, type 26, .LC0 + 2 (string = NETDEV_UP) offset 78, type 26, .LC17 + 2 (string = NETDEV_NOTIFY_PEERS) offset 88, type 26, .LC2 + 2 (string = NETDEV_REBOOT) Signed-off-by: Sumanth Korikkar <[email protected]>
- Loading branch information
1 parent
9d71c8d
commit c6f87d6
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters