This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFC] psim.c file is missing a header file libiberty.h
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: manjo at austin dot ibm dot com
- Cc: gdb-patches at sources dot redhat dot com
- Date: Thu, 21 Apr 2005 00:09:19 +0200 (CEST)
- Subject: Re: [RFC] psim.c file is missing a header file libiberty.h
- References: <Pine.LNX.4.58.0504201003420.20476@lazy>
Date: Wed, 20 Apr 2005 10:07:32 -0500 (CDT)
From: Manoj Iyer <manjo@austin.ibm.com>
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 <manjo@austin.ibm.com>
* 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