From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7799 invoked by alias); 18 May 2006 13:32:33 -0000 Received: (qmail 7740 invoked by uid 22791); 18 May 2006 13:32:31 -0000 X-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_40,TW_WP X-Spam-Check-By: sourceware.org Received: from dns2-chi.paetec.net (HELO dns2-chi.paetec.net) (64.80.249.72) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 18 May 2006 13:31:33 +0000 Received: from dtcsrvr09.dtccom.com ([66.153.88.146]) by dns2-chi.paetec.net (8.13.6/8.13.6) with ESMTP id k4IDVQOX003225; Thu, 18 May 2006 09:31:31 -0400 (EDT) Received: by dtcsrvr09.dtccom.com with Internet Mail Service (5.5.2658.3) id ; Thu, 18 May 2006 09:30:53 -0400 Message-ID: From: "Doyle, Patrick" To: "'ecos-patches@ecos.sourceware.org'" Cc: "'ecos-devel@ecos.sourceware.org'" Subject: RE: RedBoot patches regarding redboot_getc_terminate Date: Thu, 18 May 2006 13:32:00 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2658.3) Content-Type: multipart/mixed; boundary="----_=_NextPart_000_01C67A7F.49090140" X-Virus-Checked: Checked by ClamAV on sourceware.org Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2006-05/txt/msg00016.txt.bz2 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_000_01C67A7F.49090140 Content-Type: text/plain Content-length: 106 Ahh what the heck... here's the patch anyway, just to add a little more meat to the discussion... --wpd ------_=_NextPart_000_01C67A7F.49090140 Content-Type: application/octet-stream; name="redboot-load.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="redboot-load.patch" Content-length: 1979 Index: ChangeLog=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= RCS file: /cvs/ecos/ecos/packages/redboot/current/ChangeLog,v=0A= retrieving revision 1.237=0A= diff -u -r1.237 ChangeLog=0A= --- ChangeLog 30 Jan 2006 21:04:04 -0000 1.237=0A= +++ ChangeLog 18 May 2006 13:25:01 -0000=0A= @@ -1,3 +1,8 @@=0A= +2006-05-18 Patrick Doyle =0A= +=0A= + * src/load.c (load_elf_image): Terminate ELF transfers gracefully=0A= + after reading all of the sections required by RedBoot.=0A= +=0A= 2005-11-23 Peter Korsgaard =0A= =20=0A= * src/gunzip.c (do_gunzip): Fixed diag_printf format string warnings.=0A= Index: src/load.c=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= RCS file: /cvs/ecos/ecos/packages/redboot/current/src/load.c,v=0A= retrieving revision 1.45=0A= diff -u -r1.45 load.c=0A= --- src/load.c 9 Sep 2005 13:26:03 -0000 1.45=0A= +++ src/load.c 18 May 2006 13:25:01 -0000=0A= @@ -430,10 +430,9 @@=0A= entry_address =3D ehdr.e_entry;=0A= }=0A= =20=0A= - // nak everything to stop the transfer, since redboot=0A= - // usually doesn't read all the way to the end of the=0A= - // elf files.=0A= - redboot_getc_terminate(true);=0A= + // Terminate the transfer gracefully at this point, since redboot=0A= + // usually doesn't read all the way to the end of the elf files.=0A= + redboot_getc_terminate(false);=0A= if (addr_offset) diag_printf("Address offset =3D %p\n", (void *)addr_o= ffset);=0A= diag_printf("Entry point: %p, address range: %p-%p\n",=20=0A= (void*)entry_address, (void *)load_address, (void *)load_a= ddress_end);=0A= ------_=_NextPart_000_01C67A7F.49090140--