跳转至

开发者

ULPatch Development Guide

This document features basic guidelines and recommendations on how to do ulpatch development. Please read it carefully before submitting patches to simplify reviewing and to speed up the merge process.

Background

In my opinion, if you want to develop and participate in the development of this project together, the following knowledge points need to be understood in advance:

  • Linux Basics;
  • ELF format;
  • ELF relocation;
  • How Linux kernel runs an ELF executable;
  • How GNU linker works;

Precautions

You can view unfinished development tasks in TODO-List, and you need to obey the Coding Style and Contributing rules.

C Compile Macros

CONFIG_CAPSTONE

Macro CONFIG_CAPSTONE defined and set to 1 by default if found capstone, you can turn it off, see INSTALL.

BUILD_PIE_EXE

Macro BUILD_PIE_EXE determines whether the compiled ULPatch executable is a PIE program.

C Macros

current

Like kernel macro current, this current indicates the currently opened remote process.