This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Re: Printf function error
- From: "Aniket S Joshi" <aniketsj at myw dot ltindia dot com>
- To: <klawson at ad-holdings dot co dot uk>,<ecos-discuss at sources dot redhat dot com>
- Date: Wed, 25 Feb 2004 18:15:33 +0530
- Subject: Re: [ECOS] Re: Printf function error
Hi Kelvin,
After doing the changes in sh.ld bss* problem solved.
Thanks for the help.
I am tring to download the twothreads.c file on my target Hitachi 7729 using gdb.
Upto load stage every thing is fine.
when i type continue & pressing enter it is giving following error
Program received signal SIGBUS, Bus error.
0x8c023de0 in Cyg_Thread <this=0x8c03193c, sched_info=0,
entery=0x8c0318d5 <idle_thread_stack+1952>,entry_data=15,
name_arg=0x11110000 "", stack_bae=286326784, stack_size=2349013205>
at thread.inl:319
319 HAL_THREAD_INIT_CONTEXT(stack_ptr,thread,thread_entry,threadid);
current language: auto; currently c++
pls guide me to solve thes problem
Thanks in advance
Aniket
>>> Kelvin Lawson <klawson@ad-holdings.co.uk> 02/25/04 04:19PM >>>
This is because of the bss* problem I mentioned yesterday. Did you fix
the sh.ld file ? You should also create a new project after doing this
to make sure you have up to date linker scripts etc for that project.
Kelvin.
Aniket S Joshi wrote:
> Hi Kelvin,
>
>
> Thanks for the quick reply.
> Just now i corrected the path & now it is taking from my new compiler
> I tried to run my project (configuration file) in ecos configuration tool , it is building (Library) successfully but it is giving error while test build.
> pls find attached log file
>
> (This project was building & running properly with previous compiler.... only problem was printf)
>
> Aniket
> sh-elf-gcc -ml -m3 -ggdb -nostdlib -Wl,-static -Wl,--fatal-warnings -L/ecos-c/ecos-work/sh7729_install/lib -Ttarget.ld -o /ecos-c/ecos-work/sh7729_install/tests/infra/v2_0/tests/cxxsupp tests/cxxsupp.o
> /opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.3.2/../../../../sh-elf/bin/ld: warning: no memory region specified for section `.bss._cyg_io_init'
> /opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.3.2/../../../../sh-elf/bin/ld: warning: no memory region specified for section `.bss.tty_private_info_diag'
> /opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.3.2/../../../../sh-elf/bin/ld: warning: no memory region specified for section `.bss._no_data'
> /opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.3.2/../../../../sh-elf/bin/ld: warning: no memory region specified for section `.bss.cyg_libc_startup_obj'
> /opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.3.2/../../../../sh-elf/bin/ld: warning: no memory region specified for section `.bss.__mangler_line'
> /opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.3.2/../../../../sh-elf/bin/ld: warning: no memory region specified for section `.bss.hal_saved_interrupt_state'
> /opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.3.2/../../../../sh-elf/bin/ld: warning: no memory region specified for section `.bss._cyg_hal_compiler_dummy'
> /opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.3.2/../../../../sh-elf/bin/ld: warning: no memory region specified for section `.bss.cyg_dummy_diag_init_obj'
> /opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.3.2/../../../../sh-elf/bin/ld: warning: no memory region specified for section `.bss._ZZ9trim_funcPKcE4fbuf'
> /opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.3.2/../../../../sh-elf/bin/ld: warning: no memory region specified for section `.bss._ZZ13cyg_test_exitE1i'
> /opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.3.2/../../../../sh-elf/bin/ld: warning: no memory region specified for section `.bss.idle_thread_stack'
> /opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.3.2/../../../../sh-elf/bin/ld: warning: no memory region specified for section `.bss.idle_thread_loops'
> /opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.3.2/../../../../sh-elf/bin/ld: warning: no memory region specified for section `.bss.idle_thread'
> /opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.3.2/../../../../sh-elf/bin/ld: warning: no memory region specified for section `.bss._ZN10Cyg_Thread17exception_controlE'
> /opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.3.2/../../../../sh-elf/bin/ld: warning: no memory region specified for section `.bss._ZN13Cyg_Interrupt15disable_counterE'
> /opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.3.2/../../../../sh-elf/bin/ld: warning: no memory region specified for section `.bss._ZN13Cyg_Interrupt26interrupt_disable_spinlockE'
> /opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.3.2/../../../../sh-elf/bin/ld: warning: no memory region specified for section `.bss._ZN13Cyg_Interrupt23interrupt_disable_stateE'
> /opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.3.2/../../../../sh-elf/bin/ld: warning: no memory region specified for section `.bss._ZN13Cyg_Interrupt8dsr_listE'
> /opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.3.2/../../../../sh-elf/bin/ld: warning: no memory region specified for section `.bss._ZN18Cyg_Scheduler_Base14current_threadE'
> /opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.3.2/../../../../sh-elf/bin/ld: warning: no memory region specified for section `.bss._ZN18Cyg_Scheduler_Base15need_rescheduleE'
> /opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.3.2/../../../../sh-elf/bin/ld: warning: no memory region specified for section `.bss._ZN13Cyg_Scheduler9schedulerE'
> /opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.3.2/../../../../sh-elf/bin/ld: warning: no memory region specified for section `.bss._ZN18Cyg_Scheduler_Base15thread_switchesE'
> /opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.3.2/../../../../sh-elf/bin/ld: warning: no memory region specified for section `.bss._ZZ14dbg_threadinfoE8statebuf'
> /opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.3.2/../../../../sh-elf/bin/ld: warning: no memory region specified for section `.bss.cyg_libc_main_stack'
> /opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.3.2/../../../../sh-elf/bin/ld: warning: no memory region specified for section `.bss.cyg_libc_main_thread'
> /opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.3.2/../../../../sh-elf/bin/ld: warning: no memory region specified for section `.bss._ZN17Cyg_RealTimeClock3rtcE'
> /opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.3.2/../../../../sh-elf/bin/ld: warning: no memory region specified for section `.bss._ZN20Cyg_libc_stdio_files10files_lockE'
> /opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.3.2/../../../../sh-elf/bin/ld: warning: no memory region specified for section `.bss.cygmem_pool_heap1'
> /opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.3.2/../../../../sh-elf/bin/ld: warning: no memory region specified for section `.bss.cyg_libc_atexit_handlers'
> /opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.3.2/../../../../sh-elf/bin/ld: warning: no memory region specified for section `.bss.cyg_libc_atexit_handlers_count'
> /opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.3.2/../../../../sh-elf/bin/ld: warning: no memory region specified for section `.bss.cyg_libc_signal_handlers'
> /opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.3.2/../../../../sh-elf/bin/ld: warning: no memory region specified for section `.bss.cyg_libc_signal_handlers_mutex'
> /opt/ecos/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.3.2/../../../../sh-elf/bin/ld: warning: no memory region specified for section `.bss.cyg_libc_signals_dummy_init_obj'
> collect2: ld returned 1 exit status
> make[1]: Leaving directory `/ecos-c/ecos-work/sh7729_build/infra/v2_0'
> make[1]: *** [/ecos-c/ecos-work/sh7729_install/tests/infra/v2_0/tests/cxxsupp] Error 1
> make: Leaving directory `/ecos-c/ecos-work/sh7729_build'
> make: *** [tests] Error 2
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss