From 5a1bd109d4fb99a585a0b753c8b688525bad9e89 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 22 Jul 1999 01:42:27 +0000 Subject: [PATCH] 1999-07-21 Mark Elbrecht * scripttempl/i386go32.sc: Add handling of linkonce sections. --- ld/ChangeLog | 2 ++ ld/scripttempl/i386go32.sc | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 7174955a79a..37a1fb24d39 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,7 @@ 1999-07-21 Mark Elbrecht + * scripttempl/i386go32.sc: Add handling of linkonce sections. + * configure.bat: Remove; obsolete. * emulparams/go32.sh: Remove; obsolete. * scripttempl/go32coff.sc: Remove; obsolete. diff --git a/ld/scripttempl/i386go32.sc b/ld/scripttempl/i386go32.sc index 6bd3d09ff57..303e792767a 100644 --- a/ld/scripttempl/i386go32.sc +++ b/ld/scripttempl/i386go32.sc @@ -17,8 +17,10 @@ SECTIONS { .text ${RELOCATING+ ${TARGET_PAGE_SIZE}+SIZEOF_HEADERS} : { *(.text) + ${RELOCATING+*(.gnu.linkonce.t*)} *(.const*) *(.ro*) + ${RELOCATING+*(.gnu.linkonce.r*)} ${RELOCATING+etext = . ; _etext = .}; ${RELOCATING+. = ALIGN(${SEGMENT_SIZE});} } @@ -30,8 +32,9 @@ SECTIONS *(.dtor) djgpp_last_dtor = . ;} *(.data) - ${RELOCATING+ edata = . ; _edata = .}; - ${RELOCATING+ . = ALIGN(${SEGMENT_SIZE});} + ${RELOCATING+*(.gnu.linkonce.d*)} + ${RELOCATING+edata = . ; _edata = .}; + ${RELOCATING+. = ALIGN(${SEGMENT_SIZE});} } ${CONSTRUCTING+${RELOCATING-$CTOR}} ${CONSTRUCTING+${RELOCATING-$DTOR}} -- 2.30.2