From owner-freebsd-hackers Wed Jan 25 12:31:31 1995 Return-Path: hackers-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id MAA01325 for hackers-outgoing; Wed, 25 Jan 1995 12:31:31 -0800 Received: from ibp.ibp.fr (ibp.ibp.fr [132.227.60.30]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id MAA01318 for ; Wed, 25 Jan 1995 12:31:27 -0800 Received: from masi.ibp.fr (root@masi.ibp.fr [132.227.60.23]) by ibp.ibp.fr (8.6.8/jtpda-5.0) with ESMTP id UAA10039 ; Wed, 25 Jan 1995 20:14:52 +0100 Received: from hebe.ibp.fr (card@hebe.ibp.fr [132.227.64.34]) by masi.ibp.fr (8.6.9/jtpda-5.0) with ESMTP id UAA25660 ; Wed, 25 Jan 1995 20:13:41 +0100 From: Remy.Card@masi.ibp.fr (Remy CARD) Received: by hebe.ibp.fr (8.6.9/jtpda-5.0) id UAA15501 ; Wed, 25 Jan 1995 20:10:57 +0100 Message-Id: <199501251910.UAA15501@hebe.ibp.fr> Subject: Re: Assembler error To: wkk@eng.warwick.ac.uk Date: Wed, 25 Jan 1995 20:10:57 +0100 (MET) Cc: hackers@FreeBSD.org In-Reply-To: <11463.9501241600@eng.warwick.ac.uk> from "wkk@eng.warwick.ac.uk" at Jan 24, 95 04:00:23 pm X-Mailer: ELM [version 2.4 PL21] Content-Type: text Content-Length: 1711 Sender: hackers-owner@FreeBSD.org Precedence: bulk > > Hello, Hello, > I am trying to compile mach4 server on FreeBSD. Theoretically it should > compile but I get the following error in file that has some assembler code. I > am not an assembler expert but looking at the error it look likes the assembler > is getting confused with the text and data segment (I think). Can anyone help? Well, I have successfully built Mach 4 on FreeBSD after patching the assembler a bit. I include the patch in this mail. I don't think that it can break anything (I am running a system recompiled from the current sources and it works as usual). Note that the very same patch is needed for NetBSD 1.0. Can someone please consider commiting this patch? > > Thanks very much. > > khondkar. Remy *** gnu/usr.bin/as/subsegs.c.orig Fri Jan 13 12:36:42 1995 --- gnu/usr.bin/as/subsegs.c Thu Jan 5 19:56:40 1995 *************** *** 140,145 **** --- 140,148 ---- if (seg == SEG_DATA) { seg_fix_rootP = &data_fix_root; seg_fix_tailP = &data_fix_tail; + } else if (seg == SEG_BSS) { + seg_fix_rootP = &bss_fix_root; + seg_fix_tailP = &bss_fix_tail; } else { know (seg == SEG_TEXT); seg_fix_rootP = &text_fix_root; *************** *** 171,177 **** { long tmp; /* JF for obstack alignment hacking */ #ifndef MANY_SEGMENTS ! know(seg == SEG_DATA || seg == SEG_TEXT); #endif if (seg != now_seg || subseg != now_subseg) { /* we just changed sub-segments */ --- 174,180 ---- { long tmp; /* JF for obstack alignment hacking */ #ifndef MANY_SEGMENTS ! know(seg == SEG_DATA || seg == SEG_TEXT || seg == SEG_BSS); #endif if (seg != now_seg || subseg != now_subseg) { /* we just changed sub-segments */