4

I'm pretty sure there is a man page for the ld linker script syntax, but I cannot find it.

ThinkingStiff
  • 64,767
  • 30
  • 146
  • 239
Jonathon Reinhart
  • 132,704
  • 33
  • 254
  • 328

3 Answers3

5

GNU ld's script syntax is documented in its texinfo documentation.

On a GNU/Linux system you can use the following command to reach the relevant documentation:

% info ld Scripts
jkoshy
  • 1,793
  • 15
  • 23
5

If you prefer something more handy than info, here is a browsable HTML version of the same: ld.info: Scripts. But it may not be entirely up‑to‑date, as the date is 2004.

Another one is here: Linker Scripts. There is not date, but a version, which is Binutils 2.12 (not that old).

You may find some others search the web for that exact expression: "ld.info: Scripts".

Hibou57
  • 6,870
  • 6
  • 52
  • 56
2

Not sure what you're looking for, but man ld works for me.

Also, try http://linux.die.net/man/1/ld

or for a complete manual for LD, get it from binutils or here:

http://ftp.gnu.org/old-gnu/Manuals/ld-2.9.1/ld.html

(before it was bundled into binutils)

thang
  • 3,466
  • 1
  • 19
  • 31
  • 1
    This is for ld. I'm looking for the linker scripts (that you provide with -T), and those aren't in the ld man page. – Jonathon Reinhart Jan 10 '13 at 04:10
  • I see. Man pages usually only have command lines. Did you look in the LD manual? http://ftp.gnu.org/old-gnu/Manuals/ld-2.9.1/ld.html – thang Jan 10 '13 at 06:21