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]

h8300-elf-ld crashes when -relax switch is used.


Hi,
When using -mrelax switch with h8300-elf-gcc the h8300-elf-ld crashes.

On GNU/linux it gives segmentation fault(core dumped) with signal 11.

This occurs when -relax option is passed to linker.

Try following program with command line

h8300-elf-gcc trythis.c -mrelax

int main(void)
{
	return 1;
}

Here is the trace/dump after using the -v switch.

===============================================================================C:\TEMP\trythis>h8300-elf-gcc trythis.c -mrelax -v
Reading specs from E:\toolchains\h8elf3.1\bin\..\lib\gcc-lib\h8300-elf\3.1\specs

Configured with: /home/kpit/fsfsrc/gcc-3.1patch/configure --build=i686-pc-linux-
gnu --host=i386-pc-mingw32msvc --enable-languages=c,c++ --target=h8300-elf --wit
h-newlib --prefix=/usr/mingwh8300-elf3.1
Thread model: single
gcc version 3.1
 E:\toolchains\h8elf3.1\bin\..\lib\gcc-lib\h8300-elf\3.1\cc1.exe -lang-c -v -ipr
efix E:\toolchains\h8elf3.1\bin\..\lib/gcc-lib/h8300-elf\3.1\ -D__GNUC__=3 -D__G
NUC_MINOR__=1 -D__GNUC_PATCHLEVEL__=0 -D__LONG_MAX__=2147483647L -D__LONG_LONG_M
AX__=2147483647L -D__LONG_MAX__=2147483647L -D__LONG_LONG_MAX__=2147483647L -D__
NO_INLINE__ -D__STDC_HOSTED__=1 -D__H8300__ -D__SIZE_TYPE__=unsigned int -D__PTR
DIFF_TYPE__=int -Acpu=h8300 -Amachine=h8300 -D__INT_MAX__=32767 -D__ELF__ trythi
s.c -quiet -dumpbase trythis.c -mrelax -version -o C:\TEMP/cc2daaaa.s
GNU CPP version 3.1 (cpplib) (Hitachi H8/300)
GNU C version 3.1 (h8300-elf)
        compiled by GNU C version 3.0-GNUH8_v0201.
ignoring nonexistent directory "E:/toolchains/h8elf3.1/h8300-elf/sys-include"
ignoring nonexistent directory "/usr/mingwh8300-elf3.1/include"
ignoring nonexistent directory "/usr/mingwh8300-elf3.1/lib/gcc-lib/h8300-elf/3.1
/include"
ignoring nonexistent directory "/usr/mingwh8300-elf3.1/lib/gcc-lib/h8300-elf/3.1
/../../../../h8300-elf/sys-include"
ignoring nonexistent directory "/usr/mingwh8300-elf3.1/lib/gcc-lib/h8300-elf/3.1
/../../../../h8300-elf/include"
#include "..." search starts here:
#include <...> search starts here:
 E:/toolchains/h8elf3.1/lib/gcc-lib/h8300-elf/3.1/include
 E:/toolchains/h8elf3.1/h8300-elf/include
End of search list.
 E:\toolchains\h8elf3.1\bin\..\lib\gcc-lib\h8300-elf\3.1\..\..\..\..\h8300-elf\b
in\as.exe --traditional-format -o C:\TEMP/ccUhaaaa.o C:\TEMP/cc2daaaa.s
 E:\toolchains\h8elf3.1\bin\..\lib\gcc-lib\h8300-elf\3.1\..\..\..\..\h8300-elf\b
in\ld.exe E:\toolchains\h8elf3.1\bin\..\lib\gcc-lib\h8300-elf\3.1\..\..\..\..\h8
300-elf\lib\crt0.o E:\toolchains\h8elf3.1\bin\..\lib\gcc-lib\h8300-elf\3.1\crti.
o E:\toolchains\h8elf3.1\bin\..\lib\gcc-lib\h8300-elf\3.1\crtbegin.o -LE:\toolch
ains\h8elf3.1\bin\..\lib\gcc-lib\h8300-elf\3.1 -LE:\toolchains\h8elf3.1\bin\..\l
ib\gcc-lib -LE:\toolchains\h8elf3.1\bin\..\lib\gcc-lib\h8300-elf\3.1\..\..\..\..
\h8300-elf\lib -LE:\toolchains\h8elf3.1\bin\..\lib\gcc-lib\h8300-elf\3.1\..\..\.
. C:\TEMP/ccUhaaaa.o -lgcc -relax -lc -lgcc E:\toolchains\h8elf3.1\bin\..\lib\gc
c-lib\h8300-elf\3.1\crtend.o E:\toolchains\h8elf3.1\bin\..\lib\gcc-lib\h8300-elf
\3.1\crtn.o
===============================================================================

Regards
Shrinivas

-----------------------------------------------------------------------------
Free download of GNUSH and GNUH8 tool chains for Hitachi's SH and H8 Series.
The following site also offers free support to European customers.
Read more at http://www.kpit.com/products/support.htm
Latest versions of GNUSH and GNUH8 are released on Apr 1, 2002.
-----------------------------------------------------------------------------


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