public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Re: A COFF patch
@ 1999-07-20  1:50 Nick Clifton
  0 siblings, 0 replies; 5+ messages in thread
From: Nick Clifton @ 1999-07-20  1:50 UTC (permalink / raw)
  To: ian; +Cc: hjl, binutils

HI Ian,

: I checked in the appropriate patch.  Nick omitted updating
: coff-m88k.c.

Oops!  Thanks for catching that.

Cheers
	Nick

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: A COFF patch
  1999-07-19 11:45   ` H.J. Lu
@ 1999-07-19 12:37     ` Ian Lance Taylor
  0 siblings, 0 replies; 5+ messages in thread
From: Ian Lance Taylor @ 1999-07-19 12:37 UTC (permalink / raw)
  To: hjl; +Cc: nickc, binutils

   Date: Mon, 19 Jul 1999 11:44:40 -0700 (PDT)
   From: hjl@varesearch.com (H.J. Lu)

   Just configure binutils with "--enable-targets=all" on Linux/x86
   and watch for "make check". Many tests failed on me.

I checked in the appropriate patch.  Nick omitted updating
coff-m88k.c.

Ian

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: A COFF patch
  1999-07-19 11:42 ` Ian Lance Taylor
@ 1999-07-19 11:45   ` H.J. Lu
  1999-07-19 12:37     ` Ian Lance Taylor
  0 siblings, 1 reply; 5+ messages in thread
From: H.J. Lu @ 1999-07-19 11:45 UTC (permalink / raw)
  To: Ian Lance Taylor; +Cc: nickc, binutils

> 
>    Date: Mon, 19 Jul 1999 10:29:37 -0700 (PDT)
>    From: hjl@varesearch.com (H.J. Lu)
> 
>    I don't know what you did to COFF. It seems that your change breaks
>    "configure --enable-targets=all". This patch seems to fix it. It may
>    not cover everything nor the best fix. But it is good enough for me
>    to pass "make check" when I use "configure --enable-targets=all" on
>    Linux/x86.
> 
>    Mon Jul 19 10:24:55 1998  H.J. Lu  (hjl@gnu.org)
> 
> 	   * coffgen.c (coff_object_p): Check if we are fed with a COFF
> 	   file.
> 
> This patch is definitely wrong.  Nick, please don't check it in.
> 
> It is simply wrong for coff_object_p to be called with abfd->xvec set
> to any bfd_target structure which has a NULL backend_data field.  We
> need to understand why that is happening.  Nick added a field to
> bfd_target; perhaps the problem is simply that he somehow forgot to
> update one of the many structure initializations.
> 

Just configure binutils with "--enable-targets=all" on Linux/x86
and watch for "make check". Many tests failed on me.


-- 
H.J. Lu (hjl@gnu.org)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: A COFF patch
  1999-07-19 10:29 H.J. Lu
@ 1999-07-19 11:42 ` Ian Lance Taylor
  1999-07-19 11:45   ` H.J. Lu
  0 siblings, 1 reply; 5+ messages in thread
From: Ian Lance Taylor @ 1999-07-19 11:42 UTC (permalink / raw)
  To: hjl; +Cc: nickc, binutils

   Date: Mon, 19 Jul 1999 10:29:37 -0700 (PDT)
   From: hjl@varesearch.com (H.J. Lu)

   I don't know what you did to COFF. It seems that your change breaks
   "configure --enable-targets=all". This patch seems to fix it. It may
   not cover everything nor the best fix. But it is good enough for me
   to pass "make check" when I use "configure --enable-targets=all" on
   Linux/x86.

   Mon Jul 19 10:24:55 1998  H.J. Lu  (hjl@gnu.org)

	   * coffgen.c (coff_object_p): Check if we are fed with a COFF
	   file.

This patch is definitely wrong.  Nick, please don't check it in.

It is simply wrong for coff_object_p to be called with abfd->xvec set
to any bfd_target structure which has a NULL backend_data field.  We
need to understand why that is happening.  Nick added a field to
bfd_target; perhaps the problem is simply that he somehow forgot to
update one of the many structure initializations.

Ian

^ permalink raw reply	[flat|nested] 5+ messages in thread

* A COFF patch
@ 1999-07-19 10:29 H.J. Lu
  1999-07-19 11:42 ` Ian Lance Taylor
  0 siblings, 1 reply; 5+ messages in thread
From: H.J. Lu @ 1999-07-19 10:29 UTC (permalink / raw)
  To: nickc; +Cc: Ian Lance Taylor, binutils

Hi, Nick,

I don't know what you did to COFF. It seems that your change breaks
"configure --enable-targets=all". This patch seems to fix it. It may
not cover everything nor the best fix. But it is good enough for me
to pass "make check" when I use "configure --enable-targets=all" on
Linux/x86.

Thanks.

-- 
H.J. Lu (hjl@gnu.org)
---
Mon Jul 19 10:24:55 1998  H.J. Lu  (hjl@gnu.org)

	* coffgen.c (coff_object_p): Check if we are fed with a COFF
	file.

Index: coffgen.c
===================================================================
RCS file: /work/cvs/gnu/binutils/bfd/coffgen.c,v
retrieving revision 1.1.1.2
diff -u -p -r1.1.1.2 coffgen.c
--- coffgen.c	1999/07/12 17:13:25	1.1.1.2
+++ coffgen.c	1999/07/19 17:21:51
@@ -254,6 +254,11 @@ coff_object_p (abfd)
   struct internal_filehdr internal_f;
   struct internal_aouthdr internal_a;
 
+  /* We may be called as bfd_check_format. We have to be prepared to
+     deal with everything. */
+  if (!coff_backend_info(abfd))
+    return 0;
+
   /* figure out how much to read */
   filhsz = bfd_coff_filhsz (abfd);
   aoutsz = bfd_coff_aoutsz (abfd);

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1999-07-20  1:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-20  1:50 A COFF patch Nick Clifton
  -- strict thread matches above, loose matches on Subject: below --
1999-07-19 10:29 H.J. Lu
1999-07-19 11:42 ` Ian Lance Taylor
1999-07-19 11:45   ` H.J. Lu
1999-07-19 12:37     ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).