doc/README: Add heading links
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
Intercepting and Manipulating Function and System Calls in Linux
|
||||
================================================================
|
||||
|
||||
Option 1: Preloading (`LD_PRELOAD`)
|
||||
-----------------------------------
|
||||
Option 1: Preloading (`LD_PRELOAD`) {#preloading}
|
||||
-------------------------------------------------
|
||||
|
||||
From the [ENVIRONMENT section in the Linux manual page ld.so(8)](https://www.man7.org/linux/man-pages/man8/ld.so.8.html#ENVIRONMENT):
|
||||
|
||||
@@ -44,8 +44,8 @@ LD_PRELOAD="$(pwd)/preload.so" ./main
|
||||
```
|
||||
|
||||
|
||||
Option 2: Wrapper functions (`gcc -Wl,--wrap=`, `ld --wrap=`)
|
||||
-------------------------------------------------------------
|
||||
Option 2: Wrapper functions (`gcc -Wl,--wrap=`, `ld --wrap=`) {#wrapper-functions}
|
||||
----------------------------------------------------------------------------------
|
||||
|
||||
From the [OPTIONS section in the Linux manual page ld(1)](https://www.man7.org/linux/man-pages/man1/ld.1.html#OPTIONS):
|
||||
|
||||
@@ -96,8 +96,8 @@ gcc -o main_wrapped main.c wrap.c -Wl,--wrap=malloc
|
||||
```
|
||||
|
||||
|
||||
Option 3: Kernel module
|
||||
-----------------------
|
||||
Option 3: Kernel module {#kernel-module}
|
||||
----------------------------------------
|
||||
|
||||
* Only works with Linux system calls
|
||||
* Also works with statically linked executables
|
||||
|
||||
Reference in New Issue
Block a user