Skip to content

void0red/Build_Linux_Kernel_Into_LLVM_Bitcode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 

Repository files navigation

[TOC]

Requirement

  • build kernel using clang into binary successfully
  • golang
  • The kernel module are enabled in Linux kernel configuration

Build Linux kernel into LLVM Bitcode

go run path/of/code/02-replace_cmd_log/GenKernelBitcode.go --help

Generate script

cd path/Linux/kernel
go run path/of/code/02-replace_cmd_log/GenKernelBitcode.go -path=./path/kernel/module

Get LLVM Bitcode

bash build.sh

built-in.bc is in ./path/kernel/module/

external modules are in the end of build.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%