# Linker script for PE. if test -z "${RELOCATEABLE_OUTPUT_FORMAT}"; then RELOCATEABLE_OUTPUT_FORMAT=${OUTPUT_FORMAT} fi # We can't easily and portably get an unquoted $ in a shell # substitution, so we do this instead. # Sorting of the .foo$* sections is required by the definition of # grouped sections in PE. # Sorting of the file names in R_IDATA is required by the # current implementation of dlltool (this could probably be changed to # use grouped sections instead). if test "${RELOCATING}"; then R_TEXT='*(SORT(.text$*))' R_DATA='*(SORT(.data$*))' R_RDATA='*(SORT(.rdata$*))' R_IDATA=' SORT(*)(.idata$2) SORT(*)(.idata$3) /* These zeroes mark the end of the import list. */ LONG (0); LONG (0); LONG (0); LONG (0); LONG (0); SORT(*)(.idata$4) SORT(*)(.idata$5) SORT(*)(.idata$6) SORT(*)(.idata$7)' 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= R_DATA= R_RDATA= R_IDATA= R_CRT= R_RSRC= fi cat <