mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-23 06:28:51 +00:00
Merge pull request #1355 from rwmjones/document-linker-scripts
docs: Document linker scripts change required in some projects
This commit is contained in:
@ -333,6 +333,24 @@ is a non-standard way to set this, otherwise set up the build normally and edit
|
|||||||
the generated build environment afterwards manually to point it to the right
|
the generated build environment afterwards manually to point it to the right
|
||||||
compiler (and/or `RANLIB` and `AR`).
|
compiler (and/or `RANLIB` and `AR`).
|
||||||
|
|
||||||
|
#### Linker scripts
|
||||||
|
|
||||||
|
If the project uses linker scripts to hide the symbols exported by the
|
||||||
|
binary, then you may see errors such as:
|
||||||
|
|
||||||
|
```
|
||||||
|
undefined symbol: __afl_area_ptr
|
||||||
|
```
|
||||||
|
|
||||||
|
The solution is to modify the linker script to add:
|
||||||
|
|
||||||
|
```
|
||||||
|
{
|
||||||
|
global:
|
||||||
|
__afl_*;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
### f) Better instrumentation
|
### f) Better instrumentation
|
||||||
|
|
||||||
If you just fuzz a target program as-is, you are wasting a great opportunity for
|
If you just fuzz a target program as-is, you are wasting a great opportunity for
|
||||||
|
Reference in New Issue
Block a user