Skip to content

Commit daf145b

Browse files
Suraj Jitindar Singhpuranjaymohan
authored andcommitted
create-diff-object: Include .rodata.str section in output object
On arm64 when CONFIG_DEBUG_BUGVERBOSE is enabled debugging information about bug sections is stored in the ".rodata.str" section of the object file. If this isn't included then linking fails as labels in this section are referenced by relocations in the bug table. Include this section to enable building patches which contain this bug debug information. Signed-off-by: Suraj Jitindar Singh <surajjs@amazon.com>
1 parent 9a52424 commit daf145b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kpatch-build/create-diff-object.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1879,6 +1879,7 @@ static void kpatch_include_standard_elements(struct kpatch_elf *kelf)
18791879
!strcmp(sec->name, ".symtab") ||
18801880
!strcmp(sec->name, ".toc") ||
18811881
!strcmp(sec->name, ".rodata") ||
1882+
!strcmp(sec->name, ".rodata.str") ||
18821883
is_string_literal_section(sec)) {
18831884
kpatch_include_section(sec);
18841885
}

0 commit comments

Comments
 (0)