X-Git-Url: https://oss.titaniummirror.com/gitweb?p=msp430-binutils.git;a=blobdiff_plain;f=ld%2Fscripttempl%2Fpe.sc;h=0d59aa0b134e5ecf273207b018ee789183b971be;hp=c9eb16f6dc2d1fb1d0d9bb9eaac254367f42b4f4;hb=88750007d7869f178f0ba528f41efd3b74c424cf;hpb=6df9443a374e2b81278c61b8afc0a1eef7db280b diff --git a/ld/scripttempl/pe.sc b/ld/scripttempl/pe.sc index c9eb16f..0d59aa0 100644 --- a/ld/scripttempl/pe.sc +++ b/ld/scripttempl/pe.sc @@ -13,8 +13,16 @@ fi # use grouped sections instead). if test "${RELOCATING}"; then R_TEXT='*(SORT(.text$*))' - R_DATA='*(SORT(.data$*))' - R_RDATA='*(SORT(.rdata$*))' + if test "x$LD_FLAG" = "xauto_import" ; then + R_DATA='*(SORT(.data$*)) + *(.rdata) + *(SORT(.rdata$*))' + R_RDATA='' + else + R_DATA='*(SORT(.data$*))' + R_RDATA='*(.rdata) + *(SORT(.rdata$*))' + fi R_IDATA=' SORT(*)(.idata$2) SORT(*)(.idata$3) @@ -37,7 +45,7 @@ if test "${RELOCATING}"; then else R_TEXT= R_DATA= - R_RDATA= + R_RDATA='*(.rdata)' R_IDATA= R_CRT= R_RSRC= @@ -61,6 +69,7 @@ SECTIONS ${RELOCATING+ *(.init)} *(.text) ${R_TEXT} + ${RELOCATING+ *(.text.*)} *(.glue_7t) *(.glue_7) ${CONSTRUCTING+ ___CTOR_LIST__ = .; __CTOR_LIST__ = . ; @@ -93,9 +102,7 @@ SECTIONS .rdata ${RELOCATING+BLOCK(__section_alignment__)} : { - *(.rdata) ${R_RDATA} - ${RELOCATING+ *(.eh_frame)} ${RELOCATING+___RUNTIME_PSEUDO_RELOC_LIST__ = .;} ${RELOCATING+__RUNTIME_PSEUDO_RELOC_LIST__ = .;} *(.rdata_runtime_pseudo_reloc) @@ -103,6 +110,11 @@ SECTIONS ${RELOCATING+__RUNTIME_PSEUDO_RELOC_LIST_END__ = .;} } + .eh_frame ${RELOCATING+BLOCK(__section_alignment__)} : + { + *(.eh_frame) + } + .pdata ${RELOCATING+BLOCK(__section_alignment__)} : { *(.pdata) @@ -206,6 +218,11 @@ SECTIONS *(.debug_pubnames) } + .debug_pubtypes ${RELOCATING+BLOCK(__section_alignment__)} ${RELOCATING+(NOLOAD)} : + { + *(.debug_pubtypes) + } + /* DWARF 2. */ .debug_info ${RELOCATING+BLOCK(__section_alignment__)} ${RELOCATING+(NOLOAD)} : {