This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Can't connect to remote Evaluator 7T
<removed gdb at sources from CC list>
>>>>> Pierre Habraken writes:
> Pierre Habraken wrote:
>> [...]
>> Ok. So, I have to re-link the program so that its location is at
>> 0x10000 or above.
>> But first I am going to learn how to tell ld what to do for obtaining
>> this result...
> Passing argument -Ttext 0x10000 to ld is ok : gdb uploads the program to
> the board with success.
> But now I am faced to a new problem : newlib (which is linked to my
> program), and especially the C run time sartup code, uses SWI calls to
> Angel (swi 0x00123456), which one has been replaced by Redboot !
> Does anyone know how to tell newlib not to use Angel services ?
If you're building a newlib based app, you should use the redboot
support in libgloss to build your app.
% arm-elf-gcc -specs=redboot.specs -Ttext=0x10000 ....
The "redboot.specs" part will ensure that RedBoot recognizable SWIs
are used, not the Angel ones in libc. This will only work if RedBoot
was built with CYGSEM_REDBOOT_BSP_SYSCALLS turned on.
--Mark
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss