Article View: gnu.emacs.bug
Article #8721119.27 i486-linux seg fault & fix
From: Alan Modra
Date: Tue, 04 Oct 1994 11:23
Date: Tue, 04 Oct 1994 11:23
25 lines
1488 bytes
1488 bytes
The following patch removes a gratuitous change to unexec.c that causes
emacs-19.27 to seg fault under Linux if compiled as a QMAGIC a.out binary.
The subtraction from hdr.a_text puts the right value for the length of
text written by copy_text_and_data() around line 909.
diff -cr -F^[_a-zA-Z0-9$]+ *( orig/emacs-19.27/src/unexec.c ./src/unexec.c
*** orig/emacs-19.27/src/unexec.c Fri Jun 17 09:15:28 1994
--- ./src/unexec.c Tue Oct 4 18:25:13 1994
*************** make_hdr (new, a_out, data_start, bss_st
*** 793,804 ****
PERROR (new_name);
}
- /* This adjustment was done above only #ifndef NO_REMAP,
- so only undo it now #ifndef NO_REMAP. */
- #ifndef NO_REMAP
#ifdef A_TEXT_OFFSET
hdr.a_text -= A_TEXT_OFFSET (ohdr);
- #endif
#endif
return 0;
--- 793,800 ----
Technical Details
Message-ID:
<m0qs7v7-0002TvC@sunny>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!spri.levels.unisa.EDU.AU!alanShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,80a9dc1340327b31,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1994-10-04 05:45:54 PST Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!spri.levels.unisa.EDU.AU!alan From: alan@spri.levels.unisa.EDU.AU (Alan Modra) Newsgroups: gnu.emacs.bug Subject: 19.27 i486-linux seg fault & fix Date: 4 Oct 1994 07:23:43 -0400 Organization: GNUs Not Usenet Lines: 25 Sender: daemon@cis.ohio-state.edu Approved: bug-gnu-emacs@prep.ai.mit.edu Distribution: gnu Message-ID: <m0qs7v7-0002TvC@sunny>