Small correction to linker script

#1171688
Rate this post
• ▲ useful
▼ not useful
Rasmus Pedersen wrote:
> Hi,
>
> I think line 40 in the files AT917S64-ROM/RAM.ld should be
>   .text : { *Cstartup.o (.text) }>FLASH =0
> instead of
>   .text : { *cstartup.o (.text) }>FLASH =0
> Otherwise the object file CStartup.o has to appear first when invoking
> the linker.
> Rasmus

Since the Windows file system is not case sensitive I am struggling to
see the difference - however if you were to use these scripts on Linux
you would indeed have a problem.
Guest #1171689
Rate this post
• ▲ useful
▼ not useful
Rasmus Pedersen wrote:
> I think line 40 in the files AT917S64-ROM/RAM.ld should be
>   .text : { *Cstartup.o (.text) }>FLASH =0
> instead of
>   .text : { *cstartup.o (.text) }>FLASH =0
> Otherwise the object file CStartup.o has to appear first when invoking
> the linker.
> Rasmus

Thanks for the report. As Clifford already mentioned the problem should
only exist with an OS which handles filenames case-sensitive. But since
the examples from my collection should be usable on all OSs which can
host the GNU arm-elf toolchain I have modified the linker-scripts. The
updated versions are available on
http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/index_at91.html

Martin Thomas

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.