[Bug ld/5761] New: Segfault in make_abs().

2008-02-13 Thread osv at javad dot com
This segfault occurs with both 2.18 and 2.18.50.20080213, while 2.17 works fine.
Here is gdb stack backtrace:

(gdb) run
Starting program: /home/osv/try/sparc-elf/bin/ld -o main -L../linker
-L/home/osv/firm/build/leon3/ecos/install/lib
-L/home/osv/try/lib/gcc/sparc-elf/4.2.3/v8
-L/home/osv/try/lib/gcc/sparc-elf/4.2.3/../../../../sparc-elf/lib/v8
-L/home/osv/try/lib/gcc/sparc-elf/4.2.3
-L/home/osv/try/lib/gcc/sparc-elf/4.2.3/../../../../sparc-elf/lib -Map main.map
-s -S --gc-sections -N -T std_avt.lnk  --start-group -ltarget -lc
-lm -lsupc++ --end-group -lgcc -lgcc -v
GNU ld (GNU Binutils) 2.18.50.20080213

Program received signal SIGSEGV, Segmentation fault.
make_abs () at ../../../binutils/ld/ldexp.c:138
138   expld.result.value += expld.result.section->vma;
(gdb) bt
#0  make_abs () at ../../../binutils/ld/ldexp.c:138
#1  0x08055b6f in lang_size_sections_1 (s=,
output_section_statement=0x919c578, prev=0x1, fill=0x0, dot=1611642024,
relax=0x0, check_regions=0) at ../../../binutils/ld/ldlang.c:4821
#2  0x0805644f in one_lang_size_sections_pass (relax=0x0, check_regions=0) at
../../../binutils/ld/ldlang.c:4970
#3  0x080566c9 in strip_excluded_output_sections () at
../../../binutils/ld/ldlang.c:3499
#4  0x080653ab in gldelf32_sparc_before_allocation () at eelf32_sparc.c:1038
#5  0x08058ad0 in lang_process () at ../../../binutils/ld/ldlang.c:6062
#6  0x0805cbd5 in main (argc=152751196, argv=0xc4) at
../../../binutils/ld/ldmain.c:461
(gdb) p expld.result.section
$1 = (asection *) 0x0
(gdb)

Unfortunately I can't send all the object files to reproduce this, but hopefully
I can aid in debugging, -- please let me know what can I do to help.

-- 
   Summary: Segfault in make_abs().
   Product: binutils
   Version: 2.19 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: osv at javad dot com
CC: bug-binutils at gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: sparc-unknown-elf


http://sourceware.org/bugzilla/show_bug.cgi?id=5761

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


Compilation failed

2008-02-13 Thread Paluch Sebastian
I have faced problem during compilation, this is only warning but because  
of the way it is done compilation stops. Maybe it will be usefull.


Best regards
Sebastian Paluch

/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.  
-I/tmp/src/binutils-2.18/bfd -I. -I. -I/tmp/src/binutils-2.18/bfd  
-I/tmp/src/binutils-2.18/bfd/../include  -I./../intl   -W -Wall  
-Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c -o elflink.lo  
/tmp/src/binutils-2.18/bfd/elflink.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/tmp/src/binutils-2.18/bfd  
-I. -I. -I/tmp/src/binutils-2.18/bfd  
-I/tmp/src/binutils-2.18/bfd/../include -I./../intl -W -Wall  
-Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c  
/tmp/src/binutils-2.18/bfd/elflink.c -o elflink.o

/tmp/src/binutils-2.18/bfd/elflink.c: In function `compute_bucket_count':
/tmp/src/binutils-2.18/bfd/elflink.c:5177: warning: unused variable  
`dynsymcount'

/tmp/src/binutils-2.18/bfd/elflink.c:5180: warning: unused variable `amt'
/tmp/src/binutils-2.18/bfd/elflink.c: At top level:
/tmp/src/binutils-2.18/bfd/elflink.c:5174: warning: unused parameter  
'hashcodes'

make[4]: *** [elflink.lo] Error 1


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils