From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Fri, 17 May 1996 23:22:51 -0500 (CDT) From: Richard Henderson Subject: Re: strip and that kernel patch nonsense In-Reply-To: <9605172235.AA12252@nova.tat.physik.uni-tuebingen.de> Harald Koenig wrote: > if your description about the file offset information in the ECOFF > header is correct I'd think that any patch for the binutils will only > handle the symptoms but not the real reason (and not even the symptoms > seem th be cured by the binutils patch). I blame it all on a generally bad day, but the segment size change really did run the idle program. After I'd slept I realized that that shouldn't have worked. The real problem, (no really!) was flags not being set on the .pdata section before file offsets were assigned. Try this. r~ Index: ecoff.c =================================================================== RCS file: /home/richard/Repository/cygnus/gas/bfd/ecoff.c,v retrieving revision 1.1.1.3 diff -u -r1.1.1.3 ecoff.c --- ecoff.c 1996/03/23 22:46:11 1.1.1.3 +++ ecoff.c 1996/05/17 05:53:45 @@ -161,7 +161,8 @@ else if (strcmp (section->name, _RDATA) == 0 || strcmp (section->name, _LIT8) == 0 || strcmp (section->name, _LIT4) == 0 - || strcmp (section->name, _RCONST) == 0) + || strcmp (section->name, _RCONST) == 0 + || strcmp (section->name, _PDATA) == 0) section->flags |= SEC_DATA | SEC_LOAD | SEC_ALLOC | SEC_READONLY; else if (strcmp (section->name, _BSS) == 0 || strcmp (section->name, _SBSS) == 0)