This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: undefined variable 'pe_data_import_dll'


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
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]