The problem is in the ld,
This Segfault comes from mips24ke_nfp_be-ld
I want to know if there is some problem which else if you have some pointers you can suggest it
I did some basic debugging, i get the following
[...@localhost binutils]$ gdb mips24ke_nfp_be-ld
~
(gdb) r main.o
Starting program: /home/uma/binutils/toolchain_mips24ke_nfp_be/bin/mips24ke_nfp_be-ld main.o
~
/home/uma/binutils/toolchain_mips24ke_nfp_be/bin/mips24ke_nfp_be-ld: warning: cannot find entry symbol __start; defaulting to 00000000004000b0
Program received signal SIGSEGV, Segmentation fault.
htab_traverse (htab=0x0, callback=0x8098370 <mips_elf_create_la25_stub>,
info=0xbf94d8a4) at ../../libiberty/hashtab.c:762
762 if (htab_elements (htab) * 8 < htab_size (htab))
(gdb) where
#0 htab_traverse (htab=0x0, callback=0x8098370 <mips_elf_create_la25_stub>,
info=0xbf94d8a4) at ../../libiberty/hashtab.c:762
#1 0x080a455b in _bfd_mips_elf_final_link (abfd=0x9a3f678, info=0x81d46a0)
at ../../bfd/elfxx-mips.c:11470
#2 0x0805e6d5 in ldwrite () at ../../ld/ldwrite.c:558
#3 0x0805dadc in main (argc=Cannot access memory at address 0x0
) at ../../ld/ldmain.c:468
(gdb) print htab
$1 = (htab_t) 0x0
If you have some work around, you can suggest.
I took the patches from the CVS of Binutils - 1.247
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elfxx-mips.c?cvsroot=src&logsort=date
There were many chnages in the elfxx_mips.c. in this version.
Regards
Vijayendra Suman
------- Original Message -------
Sender : Nick Clifton<ni...@redhat.com>
Date : Sep 23, 2009 18:03 (GMT+09:00)
Title : Re: Ld - 2.17.90 patch level 2.247 elfxx-mips.c
Hi VIJAYENDRA,
> After applying the patch for 2.247 of elfxx-mips.c,
> when i compile i get segfault
Please could you try using the latest version of the linker (ie one
built from the head of the mainline binutils cvs sources). If the
problem still exists, please could you open a bug report here:
http://sourceware.org/bugzilla/
Please include in the description a simple way to reproduce the problem,
including the command line that you are using and the the configuration
of the linker, and also a pointer to where this 2.247 patch can be found.
Cheers
Nick Clifton
Regards,
Vijayendra Suman
For 2,000 years Greek scholars thought that heavier objects fall faster than lighter ones.
_______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils