From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11310 invoked by alias); 4 Feb 2002 17:47:58 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 11205 invoked from network); 4 Feb 2002 17:47:55 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 4 Feb 2002 17:47:55 -0000 Received: from localhost.redhat.com (cse.sfbay.redhat.com [205.180.230.236]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id JAA13403; Mon, 4 Feb 2002 09:47:49 -0800 (PST) Received: by localhost.redhat.com (Postfix, from userid 469) id EA48B110FC; Mon, 4 Feb 2002 12:47:46 -0500 (EST) From: Elena Zannoni MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15454.51522.720684.688328@localhost.redhat.com> Date: Mon, 04 Feb 2002 09:47:00 -0000 To: Andrew Cagney Cc: Alexandre Oliva , gdb@sources.redhat.com Subject: Re: GDB cvs won't build on AIX 4.1 In-Reply-To: <3C5EB18B.9000900@cygnus.com> References: <3C5DF47D.8090803@cygnus.com> <3C5EB18B.9000900@cygnus.com> X-Mailer: VM 7.00 under Emacs 20.7.1 X-SW-Source: 2002-02/txt/msg00083.txt.bz2 Andrew Cagney writes: > > On Feb 4, 2002, Andrew Cagney wrote: > > > > > >>> Perhaps we should hard-code the link option -bbigtoc for gdb to > >>> link properly on AIX? > > > > > >> That was the problem. See gdb/294. > >> http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=294 > > > > > > Thanks for the pointer. Would it be pointless then to post a patch > > that detected which version of GCC is in use, and whether the linker > > it uses accepts -bbigtoc? > > > The oposite! See Peter Schauer's comment - it would solve the problem. > > Andrew Sorry for the late reply, but there is another way to solve that problem which is to compile gdb passing the -mminimal-toc option to gcc. This should be uniformly OK independently of the linker used. There are also these options available, but I haven't tried them. -mfull-toc -mno-fp-in-toc -mno-sum-in-toc FWIW, using the GNU linker and reverting that patch I get this error: ../../powerpc-ibm-aix4.3.3.0/bin/ld: invalid BFD target `bigtoc'collect2: ld returned 1 exit status Elena