Skip to content

Commit 72f6a88

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 c1034f5 commit 72f6a88

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

kpatch-build/create-diff-object.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1950,6 +1950,7 @@ static void kpatch_include_standard_elements(struct kpatch_elf *kelf)
19501950
!strcmp(sec->name, ".symtab") ||
19511951
!strcmp(sec->name, ".toc") ||
19521952
!strcmp(sec->name, ".rodata") ||
1953+
!strcmp(sec->name, ".rodata.str") ||
19531954
is_string_literal_section(sec)) {
19541955
kpatch_include_section(sec);
19551956
}

0 commit comments

Comments
 (0)