about summary refs log tree commit diff
path: root/docs/fuzzing_in_depth.md
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2022-03-19 15:58:11 +0100
committerGitHub <noreply@github.com>2022-03-19 15:58:11 +0100
commit13c8a27faa2447b02643572dada0a64683a88e26 (patch)
treec25024b3caebeba2fc1eee631b99c602e36e4bd6 /docs/fuzzing_in_depth.md
parentfa2b0404763f69c3bff0912a44a11e2e8c3734ab (diff)
parenta133aa91064df78298f762b5dc52e69ae7b0ae96 (diff)
downloadafl++-13c8a27faa2447b02643572dada0a64683a88e26.tar.gz
Merge pull request #1355 from rwmjones/document-linker-scripts
docs: Document linker scripts change required in some projects
Diffstat (limited to 'docs/fuzzing_in_depth.md')
-rw-r--r--docs/fuzzing_in_depth.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/fuzzing_in_depth.md b/docs/fuzzing_in_depth.md
index a9151a25..cff00f77 100644
--- a/docs/fuzzing_in_depth.md
+++ b/docs/fuzzing_in_depth.md
@@ -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
 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
 
 If you just fuzz a target program as-is, you are wasting a great opportunity for