This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fprintf segfaults on target architecture armv7-a with gcc 4.4.x


Hi

I have a problem with use of the toolchain compilied with ct-ng. Toolchain is 
compiled with sample arm-cortex_a8-linux-gnueabi. Attached sample program
fails with fprintf call. I have tried both glibc 2.9 and 2.10.1.

Toolchain compiled with gcc 4.3.4 and glibc 2.9 works fine.

Strace and ltrace (compiled with different toolchain) output ends on fprintf 
call. I have checked that libraries needed by the program are correct ones.

I appriciate any help.

Rok


-- 
Rok MarkoviÄ
Kanardia d.o.o.
Ul. heroja RojÅka 70
SI-3000 Celje

Tel: +386 3 424 4242
Fax: +386 3 424 4195
Mob: +386 40 360 963
E-mail: rok.markovic@kanardia.eu
URL: www.kanardia.eu
#include <stdio.h>

int main()
{
	printf("Test\n");
	
	FILE *out = fopen( "output.txt", "w" );
	
	if( out != NULL )
		fprintf( out, "Hello\n");
	
	return 0;
}
--
For unsubscribe information see http://sourceware.org/lists.html#faq

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