From: Sergei Trofimovich <[email protected]>

Signed-off-by: Sergei Trofimovich <[email protected]>
---
 ld/scripttempl/pe.sc  | 4 ++++
 ld/scripttempl/pep.sc | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/ld/scripttempl/pe.sc b/ld/scripttempl/pe.sc
index bb05823..c2a3474 100644
--- a/ld/scripttempl/pe.sc
+++ b/ld/scripttempl/pe.sc
@@ -36,6 +36,7 @@ if test "${RELOCATING}"; then
   R_CRT_XC='*(SORT(.CRT$XC*))  /* C initialization */'
   R_CRT_XI='*(SORT(.CRT$XI*))  /* C++ initialization */'
   R_CRT_XL='*(SORT(.CRT$XL*))  /* TLS callbacks */'
+  R_CRT_XD='*(SORT(.CRT$XD*))  /* dynamic TLS callbacks */'
   R_CRT_XP='*(SORT(.CRT$XP*))  /* Pre-termination */'
   R_CRT_XT='*(SORT(.CRT$XT*))  /* Termination */'
   R_TLS='
@@ -174,6 +175,9 @@ SECTIONS
     ${RELOCATING+___crt_xl_start__ = . ;}
     ${R_CRT_XL}
     /* ___crt_xl_end__ is defined in the TLS Directory support code */
+    ${RELOCATING+___crt_xd_start__ = . ;}
+    ${R_CRT_XD}
+    ${RELOCATING+___crt_xd_end__ = . ;}
     ${RELOCATING+___crt_xp_start__ = . ;}
     ${R_CRT_XP}
     ${RELOCATING+___crt_xp_end__ = . ;}
diff --git a/ld/scripttempl/pep.sc b/ld/scripttempl/pep.sc
index ff11153..d57b9d2 100644
--- a/ld/scripttempl/pep.sc
+++ b/ld/scripttempl/pep.sc
@@ -36,6 +36,7 @@ if test "${RELOCATING}"; then
   R_CRT_XC='*(SORT(.CRT$XC*))  /* C initialization */'
   R_CRT_XI='*(SORT(.CRT$XI*))  /* C++ initialization */'
   R_CRT_XL='*(SORT(.CRT$XL*))  /* TLS callbacks */'
+  R_CRT_XD='*(SORT(.CRT$XD*))  /* dynamic TLS callbacks */'
   R_CRT_XP='*(SORT(.CRT$XP*))  /* Pre-termination */'
   R_CRT_XT='*(SORT(.CRT$XT*))  /* Termination */'
   R_TLS='
@@ -179,6 +180,9 @@ SECTIONS
     ${RELOCATING+___crt_xl_start__ = . ;}
     ${R_CRT_XL}
     /* ___crt_xl_end__ is defined in the TLS Directory support code */
+    ${RELOCATING+___crt_xd_start__ = . ;}
+    ${R_CRT_XD}
+    ${RELOCATING+___crt_xd_end__ = . ;}
     ${RELOCATING+___crt_xp_start__ = . ;}
     ${R_CRT_XP}
     ${RELOCATING+___crt_xp_end__ = . ;}
-- 
1.7.12


------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to