This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFC] psim.c file is missing a header file libiberty.h


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.

------------------------------------------------------------------------

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

Thanks
-----
manjo
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Cogito ergo sum                                                          +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]