X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=ld%2Fscripttempl%2Fpe.sc;h=c9eb16f6dc2d1fb1d0d9bb9eaac254367f42b4f4;hb=5f294ed6805ce3931f9c04cfedff38e20010c819;hp=7926bfe877678896ed77163e77be2a9153d90ddb;hpb=5b64ad42d36e6d487e1f7287d37fbc243a178e72;p=binutils-gdb.git diff --git a/ld/scripttempl/pe.sc b/ld/scripttempl/pe.sc index 7926bfe8776..c9eb16f6dc2 100644 --- a/ld/scripttempl/pe.sc +++ b/ld/scripttempl/pe.sc @@ -24,7 +24,15 @@ if test "${RELOCATING}"; then SORT(*)(.idata$5) SORT(*)(.idata$6) SORT(*)(.idata$7)' - R_CRT='*(SORT(.CRT$*))' + 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_XP='*(SORT(.CRT$XP*)) /* Pre-termination */' + R_CRT_XT='*(SORT(.CRT$XT*)) /* Termination */' + R_TLS=' + *(.tls) + *(.tls$) + *(SORT(.tls$*))' R_RSRC='*(SORT(.rsrc$*))' else R_TEXT= @@ -38,14 +46,17 @@ fi cat <