bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/3494] New: sh4ld is showing a error


From: divya dot bettampadi at gmail dot com
Subject: [Bug ld/3494] New: sh4ld is showing a error
Date: 9 Nov 2006 07:28:08 -0000

Dear Sir/Madam,

I am using a STx7109 target board.  I want to use cross development tools(like
sh4gdb) to connect to the target via the host(linux PC)... So first I used the
sh4gcc command to compile the program hello.c

/*hello.c*/

#include<stdio.h>

main()
{
printf("Hello World\n");
}

sh4gcc -o hello.o hello.c -c -g -mboard=mb411

Next I wanted to give the start address of the location in the memory where the
program would be loaded... So I gave the instruction,

sh4ld -o hello hello.o --defsym _start=0x84001000 --defsym _stack=0x85fffffc -A
sh -b 192.168.0.72 

But I am getting the error:

 In function `main':
/home/divya/Desktop/hello.c:5: undefined reference to `printf'

What is it that I am missing? 

Thanking you,

Divya

-- 
           Summary: sh4ld is showing a error
           Product: binutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: divya dot bettampadi at gmail dot com
                CC: bug-binutils at gnu dot org
 GCC build triplet: sh-superh-elf
  GCC host triplet: sh-superh-elf
GCC target triplet: sh-superh-elf


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

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]