From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18656 invoked by alias); 10 Jan 2002 23:52:46 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 18627 invoked from network); 10 Jan 2002 23:52:44 -0000 Received: from unknown (HELO tisch.mail.mindspring.net) (207.69.200.157) by sources.redhat.com with SMTP; 10 Jan 2002 23:52:44 -0000 Received: from user-uiver6a.dsl.mindspring.com ([165.247.108.202] helo=Phoenix.mindspring.com) by tisch.mail.mindspring.net with smtp (Exim 3.33 #1) id 16Oozw-0001Er-00 for gcc-help@gcc.gnu.org; Thu, 10 Jan 2002 18:52:40 -0500 Date: Thu, 10 Jan 2002 15:52:00 -0000 From: Rayiner Hashem To: gcc-help@gcc.gnu.org Subject: Runtime initialization Message-Id: <20020110185040.488d26e4.heliosc@mindspring.com> X-Mailer: Sylpheed version 0.6.6 (GTK+ 1.2.10; i586-mandrake-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2002-01/txt/msg00109.txt.bz2 I have a few questions about what kind of runtime support g++ needs. I'm (trying) to use full-blown C++ in an OS kernel, and I'm having some problems invoking virtual functions. Basically, the problem occurs when I try to call the function itself, the CPU triple-faults and reboots. I'm thinking it has something to do with the vtables (I don't touch them anywhere else in the code). I would appreciate some info on how GCC manages vtables and specifically, what, if anything, needs to be done to the vtable sections (the gnu.linkonce.d.__vtable*) before virtual functions can be used. Thanks in advance, Rayiner H.