tutorial on GNU linker (ld) HELP

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi all:

I think I´ll get response from this forum... Well from some time ago I was looking a tutorial or something more explanatory text about the operations of GNU linker (LD) for us avr-ld.

The matter is that I can´t find too much correspondence between the well known manual "Using the GNU ld" and the linker scripts that are included in the WinAVR distribution.

There are of course parts that appear in the manual, but there are others that simply aren´t explained.
Does anybody here know a more in depth text about the ld, or know where to find such a manual?

I've read the avr-libc documentation which explained some topics on the scripts provided (as the .init, .fini statements that does NOT appear in the LD manual) but it's not enough for me.

In the near future I'll have to undertake a project using the ARM7DMI core and , you know, this architecture requires an in-depth knowledge of linker operations in order to place code running in the proper memory sections and GNU soft for ARM seems to be the only choice for me, at least by now.

Well, thanks for your response

Nachus

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The canonical source for information on ld is the "ld User Manual". WinAVR, of course, includes that user manual. If you're using one of the last 2 releases of WinAVR , you can get to it by using TkInfo. Alternatively, WinAVR has a desktop shortcut to "GNU User Manuals Online", which goes to a web page (from the GNU site) that lists all of the user manuals found online. ld is one of them.

Unfortunately, the ld User Manual, is just that, a manual, and not much in the way of a tutorial.