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]
Other format: [Raw text]

pef.c:bfd_pef_object_p breaks other targets


You can't just willy nilly assign to abfd->tdata.  It's a union and
may contain valid tdata for some other format.  See elf_object_p
for what needs to be done.

Until this is fixed, I'm disabling pef from the targets appearing
with --enable-targets=all.

	* targets.c (_bfd_target_vector): Disable pef_vec and pef_xlib_vec.

Index: bfd/targets.c
===================================================================
RCS file: /cvs/src/src/bfd/targets.c,v
retrieving revision 1.83
diff -u -p -r1.83 targets.c
--- bfd/targets.c	6 Nov 2002 13:26:27 -0000	1.83
+++ bfd/targets.c	7 Nov 2002 23:09:30 -0000
@@ -997,8 +997,11 @@ static const bfd_target * const _bfd_tar
 	&pc532machaout_vec,
 	&pc532netbsd_vec,
 	&pdp11_aout_vec,
+#if 0
+	/* bfd_pef_object_p and bfd_pef_xlib_object_p are broken.  */
 	&pef_vec,
 	&pef_xlib_vec,
+#endif
 #if 0
 	/* This has the same magic number as RS/6000.  */
 	&pmac_xcoff_vec,

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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