summaryrefslogtreecommitdiff
path: root/sci-physics/rivet/files/rivet-3.1.6-binreloc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sci-physics/rivet/files/rivet-3.1.6-binreloc.patch')
-rw-r--r--sci-physics/rivet/files/rivet-3.1.6-binreloc.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/sci-physics/rivet/files/rivet-3.1.6-binreloc.patch b/sci-physics/rivet/files/rivet-3.1.6-binreloc.patch
new file mode 100644
index 000000000000..e16691b88b47
--- /dev/null
+++ b/sci-physics/rivet/files/rivet-3.1.6-binreloc.patch
@@ -0,0 +1,12 @@
+diff -Naru Rivet-3.1.6.orig/src/Tools/binreloc.c Rivet-3.1.6/src/Tools/binreloc.c
+--- a/src/Tools/binreloc.c 2022-06-26 23:23:44.359890803 +0200
++++ b/src/Tools/binreloc.c 2022-06-26 23:24:36.962045655 +0200
+@@ -215,7 +215,7 @@
+ break;
+
+ /* Sanity check. */
+- if (strchr (line, '/') == NULL)
++ if (strstr (line, " r-xp ") == NULL || strchr (line, '/') == NULL)
+ /* With binutils > 2.30 (const void *) "" is placed in "r--p" area of memory
+ In general, for the mechanism of detection it doesn't really matter where your symbol is,
+ therefore, check for strstr (line, " r-xp ") == NULL is removed */