This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

Re: new plugin bfd_target breaks gdb with --enable-targets=all


Hi Rafael,

Nick Clifton wrote:
So - what you need to do is to prevent the plugin target from being included in an all-targets toolchain, unless --enable-plugin has been specified as well.

So ... I have checked in your patches together with this additional little patch (attached). It makes sure that the plugin target is only placed into the target vector for the all-targets case if BFD_SUPPORTS_PLUGINS is defined.


Cheers
  Nick


Index: bfd/targets.c
===================================================================
RCS file: /cvs/src/src/bfd/targets.c,v
retrieving revision 1.172
diff -c -3 -p -r1.172 targets.c
*** bfd/targets.c	26 May 2009 14:12:02 -0000	1.172
--- bfd/targets.c	28 May 2009 11:20:37 -0000
*************** static const bfd_target * const _bfd_tar
*** 1145,1151 ****
--- 1145,1153 ----
  	&pdp11_aout_vec,
  	&pef_vec,
  	&pef_xlib_vec,
+ #if BFD_SUPPORTS_PLUGINS
  	&plugin_vec,
+ #endif
  #if 0
  	/* This has the same magic number as RS/6000.  */
  	&pmac_xcoff_vec,

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