From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6443 invoked by alias); 28 May 2003 19:23:05 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 6404 invoked from network); 28 May 2003 19:23:04 -0000 Received: from unknown (63.201.54.26) by sources.redhat.com with QMTP; 28 May 2003 19:23:04 -0000 Received: (qmail 26798 invoked by uid 10); 28 May 2003 19:23:04 -0000 Received: (qmail 31417 invoked by uid 500); 28 May 2003 19:22:59 -0000 Mail-Followup-To: binutils@sources.redhat.com, donald.zoch@amd.com To: "Donald Zoch" Cc: binutils@sources.redhat.com Subject: Re: undefined virtual table references in 2.12 and later References: <20030528134335.C2266@lard.amd.com> <20030528141559.D2266@lard.amd.com> From: Ian Lance Taylor Date: Wed, 28 May 2003 19:27:00 -0000 In-Reply-To: <20030528141559.D2266@lard.amd.com> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-05/txt/msg00816.txt.bz2 "Donald Zoch" writes: > Thanks, but I did double check the real symbol names. The above > symbol, exception virtual table appears mangled as __vt_9exception > both in one of the objects that it's undefined in > > libgcc.a:tinfo.o: U exception virtual table > > with --no-demangle: > > libgcc.a:tinfo.o: U __vt_9exception > > and it appears as > > libgcc.a:exception.o:00000000 V exception virtual table > > with --no-demangle: > > libgcc.a:exception.o:00000000 V __vt_9exception Hmmm, from your original message: > /u/zochd/build2/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/libgcc.a(exception.o): > In function `__check_eh_spec': > /u/zochd/gcc-2.95.3/build2/gcc/include/exception:15: undefined > reference to `exception virtual table' This error message says that exception.o has an undefined reference to `exception virtual table'. The above nm output says that exception.o defines `exception virtual table' as a weak symbol. In other words, you are getting an undefined reference from an object which actually defines the symbol. I can not explain that. Ian