home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / bsd / 9049 < prev    next >
Encoding:
Text File  |  1992-11-18  |  1.2 KB  |  37 lines

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