compiler for arm + linker problems

OP #1854218
Rate this post
• ▲ useful
▼ not useful
Hi community,

right now i am using eclipse + winarm
and want to compile some c code for my
AT91SAM9RL board (ARM based)

for compiler
arm-elf-gcc

and linker got some problems
when i use
arm-elf-gcc, g++
i get undefined reference errors

when i use
arm-elf-ld
it works but i get .exe as result

i need .elf , .hex or .bin

can someone help?
Moderator #1854350
Rate this post
• ▲ useful
▼ not useful
Cloud Strife wrote:
> Hi community,
>
> right now i am using eclipse + winarm
> and want to compile some c code for my
> AT91SAM9RL board (ARM based)
>
> for compiler
> arm-elf-gcc

You might want to update to a more up-to-date GNU tool-packate (WinARM 
ist rather old now). See yagarto.de or search for Codesourcery CS G++ 
lite for arm-eabi.

> and linker got some problems
> when i use
> arm-elf-gcc, g++
> i get undefined reference errors

Not enough information, at least show the error messages.

> when i use
> arm-elf-ld
> it works but i get .exe as result

Avoid calling -ld directly for linking.
OP #1854473
Rate this post
• ▲ useful
▼ not useful
Martin Thomas wrote:
> Cloud Strife wrote:
>> Hi community,
>>
>> right now i am using eclipse + winarm
>> and want to compile some c code for my
>> AT91SAM9RL board (ARM based)
>>
>> for compiler
>> arm-elf-gcc
>
> You might want to update to a more up-to-date GNU tool-packate (WinARM
> ist rather old now). See yagarto.de or search for Codesourcery CS G++
> lite for arm-eabi.
>
>> and linker got some problems
>> when i use
>> arm-elf-gcc, g++
>> i get undefined reference errors
>
> Not enough information, at least show the error messages.
>

error message:
undefined reference to _read_r , ..._lseek_r ,...i_satty_r etc

i am using yagarto gcc as compiler now

>> when i use
>> arm-elf-ld
>> it works but i get .exe as result
>
> Avoid calling -ld directly for linking.

idk what files the AT91SAM9RL can understand but i guess i need .elf or 
.bin

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.