public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* Fprintf segfaults on target architecture armv7-a with gcc 4.4.x
@ 2009-12-16 12:54 Rok Markovič
  0 siblings, 0 replies; only message in thread
From: Rok Markovič @ 2009-12-16 12:54 UTC (permalink / raw)
  To: crossgcc

[-- Attachment #1: Type: text/plain, Size: 684 bytes --]

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

[-- Attachment #2: test.c --]
[-- Type: text/x-csrc, Size: 159 bytes --]

#include <stdio.h>

int main()
{
	printf("Test\n");
	
	FILE *out = fopen( "output.txt", "w" );
	
	if( out != NULL )
		fprintf( out, "Hello\n");
	
	return 0;
}

[-- Attachment #3: Type: text/plain, Size: 71 bytes --]

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-12-16 12:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-16 12:54 Fprintf segfaults on target architecture armv7-a with gcc 4.4.x Rok Markovič

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).