⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.altos

📁 早期freebsd实现
💻 ALTOS
字号:
Return-Path: <jkp@sauna.hut.fi>Date: Mon, 10 Apr 89 10:13:45 +0300From: Jyrki Kuoppala <jkp@sauna.hut.fi>Sender: jkp@sauna.hut.fiTo: info-gcc@prep.ai.mit.eduSubject: Kernel fix needed for Altos 3068 to get coff-encapsulation working rightOrganization: Helsinki University of Technology, Finland.Here's a description how to fix a kernel bug in Altos 3068 and getgcc-compiled programs working.Author: Jyrki Kuoppala (jkp@cs.hut.fi)Last modified: Mon Apr 10 09:28:40 1989There's a bug in the Altos 3068 kernel that causes gcc-compiledprograms to fail in certain situations when the machine has a heavyload and also in some other situations.  The bug exists at least inSVR 2.2 1.0gT1 and SVR 2.2 1.0e.If you have source code to your system, apply the following change toos/exec.c (function gethead):Change the lines containing		u.u_exdata.ux_tstart = sizeof(struct naout) +			sizeof(struct filhd) + (ep->ef.nscns * sizeof(struct scnhdr));to		u.u_exdata.ux_tstart = u.u_exdata.ux_txtorg;If you only have binary, use sdb to find out the address of theprevious lines (on our system it's gethead+0x140) and use yourfavourite binary editor to change the bytes '3036 0162 fffc 0002 02800000' to '23f9 01fb f4ca 01fb f4c2 6016'.  This may or may not work inyour case, depending on the version of the operating system and thephase of the moon.Here's what is just before gethead+0x140 to ease finding out the right place:0x9224 (gethead+0x122):         23f9 01fb f4ca 01fb f4ce mov.l &0x1fbf4ca.L,&0x1fbf4ce.L      []0x922e (gethead+0x12c):         23f9 01fb f4c6 01fb f4ca mov.l &0x1fbf4c6.L,&0x1fbf4ca.L      []0x9238 (gethead+0x136):         23f9 01fb f4c2 01fb f4c6 mov.l &0x1fbf4c2.L,&0x1fbf4c6.L      []Good luck !//Jyrkijkp@cs.hut.fi

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -