8000 Need suggestions for CONFIG_LTO_CLANG support · Issue #1320 · dynup/kpatch · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Need suggestions for CONFIG_LTO_CLANG support #1320
Open
@liu-song-6

Description

@liu-song-6

I am try to build livepatch for kernel built with CONFIG_LTO_CLANG.
The first issue was these .o files are not ELF files, but LLVM IR bitcode. To resolve this, I made some hack so that we run create-diff-object on vmlinux.o, which is ELF. However, create-diff-object spent hours in the following stack:

 find_symbol_by_index()                                                                                                                                                                                           
 kpatch_create_rela_list()                                                                                                                                                                                        
 kpatch_elf_open()

which makes it unusable.

So my question is: Shall we optimize create-diff-object to be faster? Or shall we try some other solutions?

Thanks in advance!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0