This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


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

build Tx39xx program


Hi all,
 
 
    Now I could build all the tool kits under win2000 with cygwin. Those tools are include binutils, gcc, insoghtand newlib.
 
    And I got a board from Toshiba brach which is Tx39xx MIPS CPU contain sygmon on the board.
 
    Now I wrote a very simple program to test entire system. as following
 
============================================
 
#include <stdio.h>   
 
void test(void)
{
  printf("in sub...\n");
}
 
int main(void)
{
  printf("Hi, it's work...\n");
  test();
  return NULL;
}
 
============================================
 
And the following are the coomands which  i do
 
============================================
 
mips-tx39-elf-gcc -c -g -O2 main.c
mips-tx39-elf-ld crt0.o crtbegin.o main.o -T jmr3904.ld
 
============================================
 
The crt0.o, crtbegin.o and the libraries files like libc.a libgcc.a libjmr3904.a libdve.a, jmr3904.ld are come while I build the tool chain.
 
 While I use the libjmr3904.a the linker always prompt me "connot find label get_mem_info", so I could get the download file. but if I replace the libjmr3904.a with libdve.a then the link could build the download file. But while I use the objdump, I could find the get_mem_info in the libjmr3904.a. So why I cannot build the download file while I use libjmr3904.a??
 
 
Are there anybody could help me???  Thanks
 
Adon Chen

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