From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5024 invoked by alias); 20 Apr 2005 22:09:28 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 4990 invoked from network); 20 Apr 2005 22:09:22 -0000 Received: from unknown (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org with SMTP; 20 Apr 2005 22:09:22 -0000 Received: from elgar.sibelius.xs4all.nl (root@elgar.sibelius.xs4all.nl [192.168.0.2]) by sibelius.xs4all.nl (8.13.0/8.13.0) with ESMTP id j3KM9KKi020308; Thu, 21 Apr 2005 00:09:20 +0200 (CEST) Received: from elgar.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by elgar.sibelius.xs4all.nl (8.13.4/8.13.3) with ESMTP id j3KM9JXw024973; Thu, 21 Apr 2005 00:09:19 +0200 (CEST) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.13.4/8.13.4/Submit) id j3KM9JdX002674; Thu, 21 Apr 2005 00:09:19 +0200 (CEST) Date: Wed, 20 Apr 2005 22:09:00 -0000 Message-Id: <200504202209.j3KM9JdX002674@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: manjo@austin.ibm.com CC: gdb-patches@sources.redhat.com In-reply-to: (message from Manoj Iyer on Wed, 20 Apr 2005 10:07:32 -0500 (CDT)) Subject: Re: [RFC] psim.c file is missing a header file libiberty.h References: X-SW-Source: 2005-04/txt/msg00244.txt.bz2 Date: Wed, 20 Apr 2005 10:07:32 -0500 (CDT) From: Manoj Iyer The psim.c file is missing a header file libiberty.h, this causes the linker (AIX) to report an unresolved symbol namely ".alloca". cc -g -o psim main.o libsim.a ../../bfd/libbfd.a ../../libiberty/libiberty.a ld: 0711-317 ERROR: Undefined symbol: .alloca ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. The patch below adds the headerfile to psim.c file. Please review and ok to commit. This is ok, but please make sure there's a blank line between the header and the actual content of the ChangeLog entry when you check it in. Mark ------------------------------------------------------------------------ 2005-04-20 Manoj Iyer * psim.c: Added libiberty.h header file. --- src/sim/ppc/psim.c 2003-06-22 11:48:12.000000000 -0500 +++ new/src/sim/ppc/psim.c 2005-04-20 10:02:43.000000000 -0500 @@ -49,6 +49,7 @@ #include "bfd.h" +#include "libiberty.h" /* system structure, actual size of processor array determined at