Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/dist/libsanitizer/tsan fix for PIC code.



details:   https://anonhg.NetBSD.org/src/rev/95955fb95f43
branches:  trunk
changeset: 335829:95955fb95f43
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jan 25 20:06:46 2015 +0000

description:
fix for PIC code.

diffstat:

 external/gpl3/gcc/dist/libsanitizer/tsan/tsan_rtl_amd64.S |  8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diffs (27 lines):

diff -r ff14470f54e1 -r 95955fb95f43 external/gpl3/gcc/dist/libsanitizer/tsan/tsan_rtl_amd64.S
--- a/external/gpl3/gcc/dist/libsanitizer/tsan/tsan_rtl_amd64.S Sun Jan 25 16:26:34 2015 +0000
+++ b/external/gpl3/gcc/dist/libsanitizer/tsan/tsan_rtl_amd64.S Sun Jan 25 20:06:46 2015 +0000
@@ -40,7 +40,11 @@
   shr $4, %rsp  # clear 4 lsb, align to 16
   shl $4, %rsp
 
+#ifdef __PIC__
+  call __tsan_trace_switch@PLT
+#else
   call __tsan_trace_switch
+#endif
 
   # Unalign stack frame back.
   mov %rbx, %rsp  # restore the original rsp
@@ -119,7 +123,11 @@
   shr $4, %rsp  # clear 4 lsb, align to 16
   shl $4, %rsp
 
+#ifdef __PIC__
+  call __tsan_report_race@PLT
+#else
   call __tsan_report_race
+#endif
 
   # Unalign stack frame back.
   mov %rbx, %rsp  # restore the original rsp



Home | Main Index | Thread Index | Old Index