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]

re:Trouble compiling gdb for host=i686 target=mips


I seem to have found the answer to my question concerning
BFD_RELOC_MIPS_HIGHER and BFD_RELOC_MIPS_HIGHEST.

The patches I found by Maciej W. Rozycki seem to be missing
definitions in bfd/bfd-in2.h and libbfd.h   I include a patch below.

This patch  *is*  needed in the snapshot for july 31 also.

There was also a problem when using the source to have
sim/mips/m16.igen dissappear  (I think after a make clean)
resulting in make giving a "don't know how to make target m16.igen"
or something similar.  I don't know what I should change to fix this.
(I just got another copy of m16.igen at the time.)

I have also changed to building with --target=mipsel-little-linux-gnu
for the present.

I hope this is helpful.

Regards,

Curtis
curtisv@lineo.com

> I am going to be doing a bit of work in the near future with gdb
(remote
> debug for
> various targets.  mips, ppc, sh, and arm) so I hope  in future I might

> actually do
> something helpful, for today though I'm afraid  that this is mainly a
> request for help.
> I've been trying to figure this out for a couple days now and find I
am
> lost!
>
> I seem to be having trouble compiling gdb-5.0 configured for
> --host=i686-pc-linux-gnu
> and
> --target=mipsel-elf-linux
>
> I am using stock gdb-5.0 with the mips patches by Maciej W. Rozycki
from
> the gdb-patches mailing list.
> (also available from  'http://www.ds2.pg.gda.pl/~macro/gdb-5.0/'.)


Here is the simple patch I needed:

diff -u --recursive gdb-5.0.macro/bfd/bfd-in2.h gdb-5.0/bfd/bfd-in2.h
--- gdb-5.0.macro/bfd/bfd-in2.h Wed Apr 19 00:32:31 2000
+++ gdb-5.0/bfd/bfd-in2.h       Thu Aug  3 11:03:13 2000
@@ -1971,6 +1971,8 @@
   BFD_RELOC_MIPS_GOT_PAGE,
   BFD_RELOC_MIPS_GOT_OFST,
   BFD_RELOC_MIPS_GOT_DISP,
+  BFD_RELOC_MIPS_HIGHER,
+  BFD_RELOC_MIPS_HIGHEST,


 /* i386/elf relocations */
diff -u --recursive gdb-5.0.macro/bfd/libbfd.h gdb-5.0/bfd/libbfd.h
--- gdb-5.0.macro/bfd/libbfd.h  Fri Apr  7 18:10:49 2000
+++ gdb-5.0/bfd/libbfd.h        Thu Aug  3 11:06:58 2000
@@ -705,6 +705,8 @@
   "BFD_RELOC_MIPS_GOT_PAGE",
   "BFD_RELOC_MIPS_GOT_OFST",
   "BFD_RELOC_MIPS_GOT_DISP",
+  "BFD_RELOC_MIPS_HIGHER",
+  "BFD_RELOC_MIPS_HIGHEST",

   "BFD_RELOC_386_GOT32",
   "BFD_RELOC_386_PLT32",



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