Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!NSFNET-RELAY.AC.UK!tjfs%tadtec.uucp From: tjfs%tadtec.uucp@NSFNET-RELAY.AC.UK (Tim Steele) Newsgroups: gnu.emacs.bug Subject: Tiny bug in 18.53 Message-ID: <8906011621.AA20639@tadtec.uucp> Date: 1 Jun 89 16:21:54 GMT Sender: mlg@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 41 Dear Richard (or whoever) Herewith description of a few tiny bugs in unexec.c which I tripped over while installing Gnu on a TPIX (Tadpole System V.3.1) system. unexec.c appears to assume that its input has 3 sections. Our object files have four sections (including .comment); this doesn't get set to 3 when the file is written. A patch to do this is as follows: 535a536,538 > #ifdef TPIX > f_hdr.f_nscns=3; /* Fix up number of sections */ > #endif Also, our object file has a magic number of 0x413, which means TPIX expects special alignment of the .text section for performance. This can be fixed up either by a facility to reset the magic number to something else - 0x410 would do the trick for TPIX - or a facility to force the .text section to load in a particular place, which is what I chose to do: 556a560,562 > #ifdef TPIX > f_thdr.s_scnptr = 0xd0; /* Force offset to be 0xd0 */ > #endif There was also a problem with terminfo.c redeclaring PC incorrectly. I got round it with the patch below, though I suspect this isn't the right thing to do: 24a25,27 > #if 1 > char *UP, *BC; /* avoid name clash */ > #else 25a29,30 > #endif > Hope this is of interest & thanks for the good work! Tim