Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site hp-pcd.UUCP Path: utzoo!linus!decvax!tektronix!ogcvax!omsvax!hplabs!hp-pcd!jim From: jim@hp-pcd.UUCP Newsgroups: net.unix-wizards Subject: Zero Based Program Query - (nf) Message-ID: <1909@hp-pcd.UUCP> Date: Thu, 22-Sep-83 03:22:21 EDT Article-I.D.: hp-pcd.1909 Posted: Thu Sep 22 03:22:21 1983 Date-Received: Sat, 24-Sep-83 00:48:17 EDT Sender: netnews@hp-pcd.UUCP Organization: Hewlett-Packard, Corvallis OR Lines: 27 #N:hp-pcd:19500003:000:749 hp-pcd!jim Sep 19 14:17:00 1983 Should all user programs be mapped so that they are zero based? We have noticed a problem with an application program (fsck) when it is run in an address map that is non-zero based. By non-zero based I mean the program is linked to be based at a non-zero logical address, i.e. 0x800000. When fsck attempts to allocate a working buffer, the first thing is does is an sbrk to find out how big it is. The number returned in the non-zero based case is 0x800000+(size of fsck). When fsck attempts to compare this number with an arbitrary max size, it gets confused. Are there other programs which expect to be zero based, or is fsck an isolated example? Thanks for your help, Jim Andreas hp-pcd\!jim (ucbvax\!harpo\!hp-pcd\!jim)