home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.bsd
- Path: sparky!uunet!think.com!paperboy.osf.org!meissner
- From: meissner@osf.org (Michael Meissner)
- Subject: Re: [386BSD] Gcc 2.3.1 & kernel -> SUCCESS/2
- In-Reply-To: kim@dde.dk's message of 16 Nov 92 13:47:17 GMT
- Message-ID: <MEISSNER.92Nov18174844@tiktok.osf.org>
- Sender: news@osf.org (USENET News System)
- Organization: Open Software Foundation
- References: <1992Nov16.134717.22679@dde.dk>
- Date: 18 Nov 92 17:48:44
- Lines: 24
-
- In article <1992Nov16.134717.22679@dde.dk> kim@dde.dk (Kim Andersen) writes:
-
- | I would like to report a partial success with using gcc-2.3.1 for kernel
- | compiling.
- |
- | I had to do the following in order to be able to link/boot this new kernel:
- |
- | compile init_main.c with gcc-1.39, otherwise the link stage would fail with
- | symbol error for "___main".
-
- Since the kernel doesn't have any C++ files compiled in, you can just add:
-
- /* NOP the call to set up G++ static constructors and destructors
- with GCC 2+, since we don't link with libgcc.a. */
-
- __main(){}
-
- (I had to do the same thing for the OSF/1 kernel).
-
- --
- Michael Meissner email: meissner@osf.org phone: 617-621-8861
- Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142
-
- You are in a twisty little passage of standards, all conflicting.
-