This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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] |
On Fri, 2004-03-19 at 18:24, Daniel Jacobowitz wrote: > On Fri, Mar 19, 2004 at 04:37:26PM +0100, Ralf Corsepius wrote: > > On Fri, 2004-03-19 at 16:08, Dave Murphy wrote: > > > I'm experiencing the same thing with an arm-elf target. The problem seems to > > > be related to having a statement of the form "__text_start = DEFINED ( > > > <label> ) ? <value if true> : <value if false>;" in the link script and only > > > appears when generating a mapfile. In your case I'd guess the linkscript has > > > a line to set a default _HeapSize if one has not been defined already. > > > > Exactly: > > _HeapSize = DEFINED(_HeapSize) ? _HeapSize : (2 * 1024 * 1024); > > > > And indeed, not generating the mapfile avoids the segfault. > > > > > The most recent source from cvs no longer segfaults > > Hmm, binutils-2.15 as of this morning (CET) still segfault. > > Could you try HEAD? The same error with binutils HEAD: # /opt/rtems-4.7/bin/sh-rtems4.7-ld -m shlelf -dc -dp -N -e _start -o o-optimize/hello.exe ../../../../../gensh4/lib/start.o -L../../../../../lib -L../../../../../gensh4/lib -L/opt/rtems-4.7/lib/gcc/sh-rtems4.7/3.4.0/ml/m4 -L/opt/rtems-4.7/lib/gcc/sh-rtems4.7/3.4.0 -L/opt/rtems-4.7/lib/gcc/sh-rtems4.7/3.4.0/../../../../sh-rtems4.7/lib/ml/m4 -L/opt/rtems-4.7/lib/gcc/sh-rtems4.7/3.4.0/../../../../sh-rtems4.7/lib -Map o-optimize/hello.map o-optimize/init.o ../../../../../gensh4/lib/no-dpmem.rel ../../../../../gensh4/lib/no-event.rel ../../../../../gensh4/lib/no-msg.rel ../../../../../gensh4/lib/no-mp.rel ../../../../../gensh4/lib/no-part.rel ../../../../../gensh4/lib/no-signal.rel ../../../../../gensh4/lib/no-timer.rel ../../../../../gensh4/lib/no-rtmon.rel -lgcc --start-group -lrtemsbsp -lrtemscpu -lc -lgcc --end-group -T ../../../../../gensh4/lib/linkcmds -lgcc Segmentation fault (core dumped) # /opt/rtems-4.7/bin/sh-rtems4.7-ld --version GNU ld version 2.15.90 20040321 Another interesting result with binutils-2.15/gcc-3.4.0 as of today (20040321) and the files from the attachment: # sh-rtems4.7-gcc -o main.o -c main.c --save-temps # sh-rtems4.7-gcc -o main -Wl,-Map,main.map -T linkcmds main.o /opt/rtems-4.7/lib/gcc/sh-rtems4.7/3.4.0/../../../../sh-rtems4.7/bin/ld: internal error ../../binutils-2.15/ld/ldlang.c 1973 # /opt/rtems-4.7/bin/sh-rtems4.7-ld --version GNU ld version 2.14.90 20040321 Ralf
Attachment:
sh-rtems-bug-0.1.tar.bz2
Description: application/bzip
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |