pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
afl++: add patch to fix runtime wlink with libexecinfo
Module Name: pkgsrc-wip
Committed By: kikadf <kikadf.01%gmail.com@localhost>
Pushed By: kikadf
Date: Sun Oct 19 18:22:05 2025 +0200
Changeset: 8531f974b2ac43103aeb5dc13df190ae9b23baf2
Modified Files:
afl++/distinfo
Added Files:
afl++/patches/patch-src_afl-cc.c
Log Message:
afl++: add patch to fix runtime wlink with libexecinfo
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=8531f974b2ac43103aeb5dc13df190ae9b23baf2
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
afl++/distinfo | 1 +
afl++/patches/patch-src_afl-cc.c | 18 ++++++++++++++++++
2 files changed, 19 insertions(+)
diffs:
diff --git a/afl++/distinfo b/afl++/distinfo
index 714fc00aa1..b2b206abc8 100644
--- a/afl++/distinfo
+++ b/afl++/distinfo
@@ -6,3 +6,4 @@ Size (AFLplusplus-4.34c.tar.gz) = 3100867 bytes
SHA1 (patch-GNUmakefile) = 7c628d33c5f542bbbcdeafcbad37a50ac3820dd3
SHA1 (patch-GNUmakefile.llvm) = cf76d3b5bb81e17a331c531bbbb174f2c918ac04
SHA1 (patch-afl-cmin) = 4c821a9a7efcf40f86737dcc04abd12e614dbdc8
+SHA1 (patch-src_afl-cc.c) = ce8b51060b94f8129a9ef08fa131d2c20acc8c53
diff --git a/afl++/patches/patch-src_afl-cc.c b/afl++/patches/patch-src_afl-cc.c
new file mode 100644
index 0000000000..c1b61780b1
--- /dev/null
+++ b/afl++/patches/patch-src_afl-cc.c
@@ -0,0 +1,18 @@
+$NetBSD$
+
+* On NetBSD link with libexecinfo on runtime
+
+--- src/afl-cc.c.orig 2025-10-19 13:59:11.282415885 +0000
++++ src/afl-cc.c
+@@ -2564,6 +2564,11 @@ void add_runtime(aflcc_state_t *aflcc) {
+ insert_param(aflcc, "-Wl,-lrt");
+ #endif
+
++#if defined(__NetBSD__)
++ // Required for backtrace used in afl-compiler-rt.o
++ insert_param(aflcc, "-lexecinfo");
++#endif
++
+ }
+
+ /** Linking behaviors -----END----- **/
Home |
Main Index |
Thread Index |
Old Index