blob: e16691b88b4781c2a63a58d7f8d3e4c27b43f40c (
plain)
1
2
3
4
5
6
7
8
9
10
11
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 */
|