From d48749734084702ffe2a535ece1d52f9aa6ac168 Mon Sep 17 00:00:00 2001 From: Kai Tietz Date: Wed, 22 Sep 2010 08:03:42 +0000 Subject: 2010-09-22 Kai Tietz * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add idata to orphan set. * emultempl/pep.em: Likewise. * scripttempl/armcoff.sc: Separate idata and add __IAT_start__ and __IAT_end__ labels. * scripttempl/pe.sc: Likewise. * scripttempl/pep.sc: Likewise. --- ld/scripttempl/armcoff.sc | 27 ++++++++++++++++++++++++++- ld/scripttempl/pe.sc | 17 ++++++++++++----- ld/scripttempl/pep.sc | 17 ++++++++++++----- 3 files changed, 50 insertions(+), 11 deletions(-) (limited to 'ld/scripttempl') diff --git a/ld/scripttempl/armcoff.sc b/ld/scripttempl/armcoff.sc index ebc019a..cefd6eb 100644 --- a/ld/scripttempl/armcoff.sc +++ b/ld/scripttempl/armcoff.sc @@ -17,7 +17,22 @@ DTOR='.dtor : { *(SORT(.dtors.*)) *(.dtor) }' - +if test "${RELOCATING}"; then + R_IDATA234=' + 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)' + R_IDATA5='SORT(*)(.idata$5)' + R_IDATA67=' + SORT(*)(.idata$6) + SORT(*)(.idata$7)' +else + R_IDATA234= + R_IDATA5= + R_IDATA67= +fi cat <