Re: good source for linker scripts



Knopf <popsch@xxxxxxx> wrote:
Hi.

Do you have a good source that describes the linking process for
microprocessors and especially linker scripts in detail? What I found
on the web it looks like an arcane art and most of the time the vendor
supplied scripts work, but in my case it doesn't.

John Levine's book on Linkers and Loaders is the only in-depth study I'm
aware of, but it's more concentrated on 'big system' linking and loading
than on small embedded devices -- the principles mostly hold, though a
lot of the details are different.

http://www.iecc.com/linker

It has worried me for the best part of two decades that linking and
loading aren't really taught on degree courses - it cuts across compilers,
comp. arch. (background to different memory spaces, "near", "far" and
"segmented" spaces etc), and embedded systems, yet it's something we
always find new/recent graduates are weak on.

pete
--
pete@xxxxxxxxxxx [Support no2id.net: working to destroy Blair's ID card fraud]
.



Relevant Pages

  • Re: z/OS static linking
    ... Unix does not allow static linking of code packaged for dynamic loading ... Some Unix variants do. ... each shared object used by one or more active processes will ...
    (comp.lang.cobol)
  • Re: LINKER/LOADER DOUBT
    ... >> bear with me as i have specified my question in an unclear fashion. ... Linking, loading and ...
    (comp.lang.c)
  • Re: Thou shalt have no other gods before the ANSI C standard
    ... > out of the literature) stuff on parsing or the research-edge stuff on ... > isolation - linking and loading seems to be entirely ignored. ...
    (sci.crypt)
  • Re: Dynamic linking
    ... I'm expecting an error at the time of loading instead of happening ... It depends what you mean by "while linking". ... second to attach the shared libraries to it at run time. ... you statically link to a stub. ...
    (comp.os.linux.development.system)
  • Dynamic linking
    ... If the shared library for printf is missing on my linux machine, ... I'm expecting an error at the time of loading instead of happening ... is because the prototype for printf can be visible while linking ...
    (comp.os.linux.development.system)