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]

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


   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


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