This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: undefined variable 'pe_data_import_dll'
- To: paul dot sokolovsky at technologist dot com
- Subject: Re: undefined variable 'pe_data_import_dll'
- From: Nick Clifton <nickc at cambridge dot redhat dot com>
- Date: 09 Aug 2001 11:30:56 +0100
- Cc: binutils at sources dot redhat dot com
Hi Paul,
I found a solution to this problem (see the patch below). I still
feel however, that there ought to be a better way to solve this
problem. My suggestion is that the definition of DLL_SUPPORT ought
to be set in ld/configure.tgt rather than ld/emultemp/pe.em and then
tested in ld/pe-dll.c before it uses variables that are only defined
in pe.em.
Cheers
Nick
Index: ld/emultempl/pe.em
===================================================================
RCS file: /cvs/src/src/ld/emultempl/pe.em,v
retrieving revision 1.46
diff -p -r1.46 pe.em
*** pe.em 2001/08/02 23:03:10 1.46
--- pe.em 2001/08/09 10:29:44
*************** Foundation, Inc., 59 Temple Place - Suit
*** 73,79 ****
#if defined(TARGET_IS_i386pe)
#define DLL_SUPPORT
#endif
! #if defined(TARGET_IS_shpe) || defined(TARGET_IS_mipspe) || defined(TARGET_IS_armpe)
#define DLL_SUPPORT
#endif
--- 73,79 ----
#if defined(TARGET_IS_i386pe)
#define DLL_SUPPORT
#endif
! #if defined(TARGET_IS_shpe) || defined(TARGET_IS_mipspe) || defined(TARGET_IS_armpe) || defined(TARGET_IS_arm_epoc_pe)
#define DLL_SUPPORT
#endif