From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9189 invoked by alias); 17 Apr 2009 21:33:44 -0000 Received: (qmail 9159 invoked by uid 22791); 17 Apr 2009 21:33:30 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.33.17) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 17 Apr 2009 21:33:25 +0000 Received: from zps75.corp.google.com (zps75.corp.google.com [172.25.146.75]) by smtp-out.google.com with ESMTP id n3HLXLjF027569; Fri, 17 Apr 2009 22:33:22 +0100 Received: from localhost.localdomain.google.com (dhcp-172-22-125-203.mtv.corp.google.com [172.22.125.203]) (authenticated bits=0) by zps75.corp.google.com with ESMTP id n3HLXJTY022700 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Fri, 17 Apr 2009 14:33:20 -0700 To: LinuxUser9 Cc: gcc-help@gcc.gnu.org Subject: Re: ld: error no .eh_frame_hdr table will be created. References: <23105607.post@talk.nabble.com> From: Ian Lance Taylor Date: Fri, 17 Apr 2009 21:33:00 -0000 In-Reply-To: <23105607.post@talk.nabble.com> (LinuxUser9's message of "Fri\, 17 Apr 2009 14\:08\:32 -0700 \(PDT\)") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2009-04/txt/msg00223.txt.bz2 LinuxUser9 writes: > Following is the error I am getting at the end of my build/compilation and in > general the functionality is ok but I am not sure the cause of this error. > Following is my compilation env: > > GNU Binary Utilities 2.18.50-sg++ > GNU C & C++ Compilers 4.3.2-sg++ > GNU C Library 2.8-sg++ > > /mips-linux-gnu-g++ -o -L > -l > mips-4.3/bin/../lib/gcc/mips-linux-gnu/4.3.2/../../../../mips-linux-gnu/bin/ld: > error in bin/libx.o(.eh_frame); no .eh_frame_hdr table will be created. > > There are several objects and they are partially linked (mips-linux-gnu-ld > -r -o FinalObject ). > This only happens if there are C++ objects. Can you please comment on why I > am getting the above indicated error? Any pointers are appreciated! Presumably bin/libx.o was not compiled by a current version of gcc. This error means that the linker did not understanding something in the exception frame information. gcc has asked the linker to create an exception frame header, but, because there is something wrong, the exception frame header will not be created. I think everything will still work more or less correctly. The effect is that throwing an exception will take longer at runtime. You can dump the exception frame information using readelf --debug=frames. Ian