EmbDev.net

Forum: ARM programming with GCC/GNU tools Small correction to linker script


Author: Rasmus Pedersen (rasped)
Posted on:

Rate this post
0 useful
not useful
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

Author: Clifford Slocombe (clifford)
Posted on:

Rate this post
0 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.

Author: Martin Thomas (Guest)
Posted on:

Rate this post
0 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...

Martin Thomas

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.