From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3750 invoked by alias); 28 May 2003 18:43:48 -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 3714 invoked from network); 28 May 2003 18:43:46 -0000 Received: from unknown (HELO amdext2.amd.com) (163.181.251.1) by sources.redhat.com with SMTP; 28 May 2003 18:43:46 -0000 Received: from SAUSGW01.amd.com (sausgw01.amd.com [163.181.250.21]) by amdext2.amd.com (8.12.8/8.12.8/AMD) with ESMTP id h4SIhFpJ015512 for ; Wed, 28 May 2003 13:43:45 -0500 (CDT) Received: from 163.181.250.1SAUSGW01.amd.com with ESMTP (AMD SMTP Relay (MMS v5.0)); Wed, 28 May 2003 13:43:48 -0500 X-Server-Uuid: 262C4BA7-64EE-471D-8B02-117625D613AB Received: from timon.amd.com (timon.amd.com [163.181.34.103]) by amdint2.amd.com (8.12.8/8.12.8/AMD) with ESMTP id h4SIhaA3007238 for ; Wed, 28 May 2003 13:43:38 -0500 (CDT) Received: from lard.amd.com (IDENT: RfjIvQ8x3/m457We8k7e0cUbR4QIe8k/@lard.amd.com [163.181.14.233]) by timon.amd.com (8.11.6/8.11.6) with ESMTP id h4SIkE313629; Wed, 28 May 2003 13:46:14 -0500 (CDT) Received: (from zochd@localhost) by lard.amd.com ( 8.9.3/8.9.3/8.9.3-MPD-evision: 1.5 $) id NAA28476; Wed, 28 May 2003 13: 43:35 -0500 Date: Wed, 28 May 2003 18:55:00 -0000 From: "Donald Zoch" To: binutils@sources.redhat.com cc: "Donald Zoch" Subject: undefined virtual table references in 2.12 and later Message-ID: <20030528134335.C2266@lard.amd.com> MIME-Version: 1.0 User-Agent: Mutt/1.3.20i X-WSS-ID: 12CBDCEE1398010-01-01 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit X-SW-Source: 2003-05/txt/msg00808.txt.bz2 I have recently encountered a problem when trying to upgrade my binutils 2.11 to version 2.13.2.1. I even tried the development version binutils-2.14.90.0.4. From what I can tell, the problem started happening with version 2.12. The problem is that when I try and link my executable, I'm getting a bunch of errors like these: /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/../../gcc/cp/exception.cc:307: undefined reference to `bad_exception type_info function' /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' /u/zochd/gcc-2.95.3/build2/gcc/include/exception:22: undefined reference to `bad_exception virtual table' I sent a message a few days ago about this and someone responded, saying that I should try the latest version and that it might be a problem with the way GNU_VTINHERIT and GNU_VTENTRY relocs are handled. >From what I can tell though, in my libgcc.a (I'm using gcc 2.95.3), the symbols are defined as weak objects, but then undefined several times also: 00000000 V bad_exception virtual table 00000000 V exception virtual table U exception virtual table U exception virtual table U exception virtual table I was wondering if anyone could explain to me what is happening, and how that I might fix it. I'd like to understand what the proper behavior should be, and what source files within binutils I could take a look at to try and make it behave as version 2.11 did. Is this a problem with binutils or gcc? I work in an environment where we need to provide multiple versions of gcc, but preferably have one version of binutils work for them all. Thanks, Donald ---- Donald Zoch 5900 E. Ben White Blvd. MS 625 Advanced Micro Devices Austin, Tx 78741 MPD Unix Systems Administrator Phone: (512) 602-7945 donald.zoch@amd.com Pager: (512) 604-5401