1 |
commit: c8c94f09b88542c7293b251c8e5bacb51b057a64 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 31 23:07:28 2019 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 31 23:07:28 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=c8c94f09 |
7 |
|
8 |
4.8.5: tweak libsanitizer for modern glibc |
9 |
|
10 |
Reported-by: Guilherme Amadio |
11 |
Bug: https://bugs.gentoo.org/671568 |
12 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
13 |
|
14 |
4.8.5/gentoo/99_all_libsanitizer-res_state-glibc-2.28.patch | 8 ++++++++ |
15 |
4.8.5/gentoo/README.history | 1 + |
16 |
2 files changed, 9 insertions(+) |
17 |
|
18 |
diff --git a/4.8.5/gentoo/99_all_libsanitizer-res_state-glibc-2.28.patch b/4.8.5/gentoo/99_all_libsanitizer-res_state-glibc-2.28.patch |
19 |
new file mode 100644 |
20 |
index 0000000..479aab0 |
21 |
--- /dev/null |
22 |
+++ b/4.8.5/gentoo/99_all_libsanitizer-res_state-glibc-2.28.patch |
23 |
@@ -0,0 +1,8 @@ |
24 |
+https://bugs.gentoo.org/671568 |
25 |
+--- a/libsanitizer/tsan/tsan_platform_linux.cc |
26 |
++++ b/libsanitizer/tsan/tsan_platform_linux.cc |
27 |
+@@ -294,3 +294,3 @@ int ExtractResolvFDs(void *state, int *fds, int nfd) { |
28 |
+ int cnt = 0; |
29 |
+- __res_state *statp = (__res_state*)state; |
30 |
++ struct __res_state *statp = (struct __res_state*)state; |
31 |
+ for (int i = 0; i < MAXNS && cnt < nfd; i++) { |
32 |
|
33 |
diff --git a/4.8.5/gentoo/README.history b/4.8.5/gentoo/README.history |
34 |
index 65f15cc..6cf4dd0 100644 |
35 |
--- a/4.8.5/gentoo/README.history |
36 |
+++ b/4.8.5/gentoo/README.history |
37 |
@@ -2,6 +2,7 @@ |
38 |
+ 96_all_stage1-ldflags.patch |
39 |
+ 97_all_libjava-ucontext.patch |
40 |
+ 98_all_asan-signal_h.patch |
41 |
+ + 99_all_libsanitizer-res_state-glibc-2.28.patch |
42 |
|
43 |
1.4 23 Sep 2018 |
44 |
U 09_all_default-ssp.patch |